diff --git a/app/src/gambas3/.lang/.pot b/app/src/gambas3/.lang/.pot index a901eee53..02e6bd09f 100644 --- a/app/src/gambas3/.lang/.pot +++ b/app/src/gambas3/.lang/.pot @@ -298,7 +298,7 @@ msgstr "" msgid "Not finished but stable" msgstr "" -#: CComponentBox.class:235 ProjectItem.class:63 +#: CComponentBox.class:235 ProjectItem.class:64 msgid "Authors" msgstr "" @@ -411,7 +411,7 @@ msgstr "" #: FList.form:121 FMain.class:198 FMakeInstall.class:356 FMenu.form:377 #: FNewConnection.form:255 FNewTable.form:86 FNewTranslation.form:21 #: FOpenProject.form:177 FOption.class:644 FPasteSpecial.form:77 -#: FPasteTable.form:107 FPropertyComponent.form:221 FPropertyProject.form:719 +#: FPasteTable.form:107 FPropertyComponent.form:221 FPropertyProject.form:726 #: FProxy.form:57 FReportBorderChooser.form:48 FReportBrushChooser.form:34 #: FReportCoordChooser.form:26 FReportPaddingChooser.form:75 FSave.form:28 #: FSaveProjectAs.form:76 FSearch.class:838 FSelectExtraFile.form:43 @@ -462,7 +462,7 @@ msgstr "" #: FMain.class:1757 FMakeInstall.class:302 FMenu.form:372 #: FNewConnection.form:249 FNewTable.form:80 FNewTranslation.form:15 #: FOpenProject.form:171 FPasteSpecial.form:71 FPropertyComponent.form:215 -#: FPropertyProject.form:713 FProxy.form:63 FReportBorderChooser.form:54 +#: FPropertyProject.form:720 FProxy.form:63 FReportBorderChooser.form:54 #: FReportBrushChooser.form:40 FReportCoordChooser.form:32 #: FReportPaddingChooser.form:69 FSelectExtraFile.form:37 FSelectIcon.form:82 #: FSnippet.form:51 FTableChooser.form:62 FText.form:35 @@ -532,7 +532,7 @@ msgstr "" msgid "Project commit" msgstr "" -#: FCommit.form:52 FMakeInstall.form:215 FPropertyProject.form:235 +#: FCommit.form:52 FMakeInstall.form:215 FPropertyProject.form:242 msgid "Description" msgstr "" @@ -979,7 +979,7 @@ msgid "Style sheet" msgstr "" #: FCreateFile.form:299 FCreateProject.form:273 FImportTable.form:51 -#: FPropertyComponent.form:56 FPropertyProject.form:257 FSearch.form:100 +#: FPropertyComponent.form:56 FPropertyProject.form:264 FSearch.form:100 msgid "Options" msgstr "" @@ -1063,7 +1063,7 @@ msgstr "" msgid "New project" msgstr "" -#: FCreateProject.form:81 FPropertyProject.form:178 +#: FCreateProject.form:81 FPropertyProject.form:185 msgid "Project type" msgstr "" @@ -1247,7 +1247,7 @@ msgid "Remove current expression" msgstr "" #: FDebugInfo.form:127 FMain.form:776 FMakeInstall.form:575 FOption.form:856 -#: FPropertyComponent.form:190 FPropertyProject.form:457 +#: FPropertyComponent.form:190 FPropertyProject.form:464 msgid "&Remove" msgstr "" @@ -1854,7 +1854,7 @@ msgstr "" msgid "Modify documentation..." msgstr "" -#: FHelpBrowser.class:24 FPropertyProject.form:368 +#: FHelpBrowser.class:24 FPropertyProject.form:375 msgid "Default language" msgstr "" @@ -2064,7 +2064,7 @@ msgstr "" msgid "&1 records imported." msgstr "" -#: FInfo.form:61 FPropertyComponent.form:51 FPropertyProject.form:147 +#: FInfo.form:61 FPropertyComponent.form:51 FPropertyProject.form:154 msgid "General" msgstr "" @@ -2084,7 +2084,7 @@ msgstr "" msgid "Directory" msgstr "" -#: FInfo.form:147 FPropertyProject.form:661 +#: FInfo.form:147 FPropertyProject.form:668 msgid "Versioning" msgstr "" @@ -2176,7 +2176,7 @@ msgstr "" msgid "Edit list property" msgstr "" -#: FList.form:58 FMenu.form:82 FPropertyProject.form:451 +#: FList.form:58 FMenu.form:82 FPropertyProject.form:458 msgid "&Insert" msgstr "" @@ -2508,7 +2508,7 @@ msgstr "" msgid "Save project as" msgstr "" -#: FMain.form:916 FPropertyProject.form:110 +#: FMain.form:916 FPropertyProject.form:111 msgid "Project properties" msgstr "" @@ -3267,7 +3267,7 @@ msgstr "" msgid "Default font size" msgstr "" -#: FOption.form:232 FPropertyProject.form:185 +#: FOption.form:232 FPropertyProject.form:192 msgid "Normal" msgstr "" @@ -3291,11 +3291,11 @@ msgstr "" msgid "Sort properties" msgstr "" -#: FOption.form:283 FPropertyComponent.form:90 FPropertyProject.form:315 +#: FOption.form:283 FPropertyComponent.form:90 FPropertyProject.form:322 msgid "No" msgstr "" -#: FOption.form:283 FPropertyComponent.form:90 FPropertyProject.form:315 +#: FOption.form:283 FPropertyComponent.form:90 FPropertyProject.form:322 msgid "Yes" msgstr "" @@ -3319,7 +3319,7 @@ msgstr "" msgid "Default tab size" msgstr "" -#: FOption.form:392 FPropertyProject.form:290 +#: FOption.form:392 FPropertyProject.form:297 msgid "space(s)" msgstr "" @@ -3738,7 +3738,7 @@ msgstr "" msgid "Features" msgstr "" -#: FPropertyComponent.form:152 FPropertyProject.form:517 +#: FPropertyComponent.form:152 FPropertyProject.form:524 msgid "Components" msgstr "" @@ -3750,142 +3750,146 @@ msgstr "" msgid "Cannot write component description file." msgstr "" -#: FPropertyProject.form:119 +#: FPropertyProject.form:120 msgid "GB_GUI=gb.qt4" msgstr "" -#: FPropertyProject.form:125 +#: FPropertyProject.form:126 msgid "GB_GUI=gb.gtk" msgstr "" -#: FPropertyProject.form:131 +#: FPropertyProject.form:132 +msgid "GB_STOCK=debug" +msgstr "" + +#: FPropertyProject.form:138 msgid "GB_JIT=debug" msgstr "" -#: FPropertyProject.form:137 +#: FPropertyProject.form:144 msgid "LANG=C ; LC_ALL=C" msgstr "" -#: FPropertyProject.form:185 +#: FPropertyProject.form:192 msgid "Library" msgstr "" -#: FPropertyProject.form:185 +#: FPropertyProject.form:192 msgid "Component" msgstr "" -#: FPropertyProject.form:191 +#: FPropertyProject.form:198 msgid "Version" msgstr "" -#: FPropertyProject.form:217 +#: FPropertyProject.form:224 msgid "Get from 'VERSION' file" msgstr "" -#: FPropertyProject.form:224 +#: FPropertyProject.form:231 msgid "Title" msgstr "" -#: FPropertyProject.form:247 +#: FPropertyProject.form:254 msgid "Author(s)" msgstr "" -#: FPropertyProject.form:267 +#: FPropertyProject.form:274 msgid "Edition" msgstr "" -#: FPropertyProject.form:278 +#: FPropertyProject.form:285 msgid "Tab size" msgstr "" -#: FPropertyProject.form:298 +#: FPropertyProject.form:305 msgid "Compilation" msgstr "" -#: FPropertyProject.form:309 +#: FPropertyProject.form:316 msgid "Module symbols are public by default" msgstr "" -#: FPropertyProject.form:326 +#: FPropertyProject.form:333 msgid "Form controls are public" msgstr "" -#: FPropertyProject.form:340 FTranslate.form:64 +#: FPropertyProject.form:347 FTranslate.form:64 msgid "Translation" msgstr "" -#: FPropertyProject.form:351 +#: FPropertyProject.form:358 msgid "Project is translatable" msgstr "" -#: FPropertyProject.form:383 +#: FPropertyProject.form:390 msgid "Debugging" msgstr "" -#: FPropertyProject.form:394 +#: FPropertyProject.form:401 msgid "Activate profiling" msgstr "" -#: FPropertyProject.form:411 +#: FPropertyProject.form:418 msgid "Use a terminal emulator" msgstr "" -#: FPropertyProject.form:422 +#: FPropertyProject.form:429 msgid "Environment" msgstr "" -#: FPropertyProject.form:432 +#: FPropertyProject.form:439 msgid "Arguments" msgstr "" -#: FPropertyProject.form:485 +#: FPropertyProject.form:492 msgid "Environment variables" msgstr "" -#: FPropertyProject.form:526 +#: FPropertyProject.form:533 msgid "Show only components used in project" msgstr "" -#: FPropertyProject.form:532 +#: FPropertyProject.form:539 msgid "Show components in beta version" msgstr "" -#: FPropertyProject.form:556 +#: FPropertyProject.form:563 msgid "About &component..." msgstr "" -#: FPropertyProject.form:567 +#: FPropertyProject.form:574 msgid "&Reset" msgstr "" -#: FPropertyProject.form:588 +#: FPropertyProject.form:595 msgid "Libraries" msgstr "" -#: FPropertyProject.form:607 +#: FPropertyProject.form:614 msgid "" "WARNING! The project executable and the libraries it depends on must " "be stored inside the same directory. Otherwise the libraries will not be " "found." msgstr "" -#: FPropertyProject.form:629 +#: FPropertyProject.form:636 msgid "&Add..." msgstr "" -#: FPropertyProject.form:669 +#: FPropertyProject.form:676 msgid "Changes since last commit" msgstr "" -#: FPropertyProject.form:692 +#: FPropertyProject.form:699 msgid "&Update" msgstr "" -#: FPropertyProject.form:698 +#: FPropertyProject.form:705 msgid "&Revert..." msgstr "" -#: FPropertyProject.form:704 +#: FPropertyProject.form:711 msgid "&Commit..." msgstr "" @@ -6084,7 +6088,7 @@ msgstr "" msgid "Unable to convert &1" msgstr "" -#: ProjectItem.class:63 +#: ProjectItem.class:64 msgid "Author" msgstr "" diff --git a/app/src/gambas3/.src/Project/FPropertyProject.form b/app/src/gambas3/.src/Project/FPropertyProject.form index 4e7d5d87d..321d98172 100644 --- a/app/src/gambas3/.src/Project/FPropertyProject.form +++ b/app/src/gambas3/.src/Project/FPropertyProject.form @@ -17,6 +17,11 @@ Text = ("GB_GUI=gb.gtk") Tag = "GB_GUI=gb.gtk" } + { munInsertEnvStock Menu mnuInsertEnv + Name = "munInsertEnvStock" + Text = ("GB_STOCK=debug") + Tag = "GB_STOCK=debug" + } { mnuInsertEnvJIT Menu mnuInsertEnv Name = "mnuInsertEnvJIT" Text = ("GB_JIT=debug") diff --git a/app/src/gambas3/.src/Project/ProjectItem.class b/app/src/gambas3/.src/Project/ProjectItem.class index 41807057d..6ba4a5143 100644 --- a/app/src/gambas3/.src/Project/ProjectItem.class +++ b/app/src/gambas3/.src/Project/ProjectItem.class @@ -38,6 +38,7 @@ Private Sub SetPath(sPath As String) $sPath = sPath $hProjectInfo = New CProjectInfo(sPath) + $hIcon = Null $hDrawingArea.ToolTip = Replace($sPath, System.User.Home, "~") Me.H = Me.IdealHeight diff --git a/comp/src/gb.form/.src/Stock.class b/comp/src/gb.form/.src/Stock.class index 2bc97994d..c309078cb 100644 --- a/comp/src/gb.form/.src/Stock.class +++ b/comp/src/gb.form/.src/Stock.class @@ -1,5 +1,7 @@ ' Gambas class file +' Gambas class file + Export Static Property Debug As Boolean @@ -15,29 +17,47 @@ Static Private $bDebug As Boolean Class _DefaultStock -Static Private Sub SearchDesktop() +Static Private Sub GetDesktop() As String Dim sOutput As String - If Application.Theme Then Return - If Application.Env["KDE_FULL_SESSION"] Then If Application.Env["KDE_SESSION_VERSION"] = "4" Then - Application.Theme = "kde4" + Return "KDE4" Else - Application.Theme = "kde" + Return "KDE" Endif - Else If Application.Env["GNOME_DESKTOP_SESSION_ID"] Then - Application.Theme = "gnome" - Else + Else If Application.Env["GNOME_DESKTOP_SESSION_ID"] Then + Return "GNOME" + Else If Application.Env["MATE_DESKTOP_SESSION_ID"] Or If Application.Env["MATECORBA_SOCKETDIR"] Then + Return "MATE" + Else If Application.Env["E_BIN_DIR"] And If Application.Env["E_LIB_DIR"] Then + Return "ENLIGHTENMENT" + Else If Application.Env["WMAKER_BIN_NAME"] Then + Return "WINDOWMAKER" + Else If Application.Env["DESKTOP_SESSION"] = "LXDE" Then + Return "LXDE" + Else Shell "xprop -root XFCE_DESKTOP_WINDOW" To sOutput - If sOutput Then Application.Theme = "xfce" + If sOutput Then Return "XFCE" Endif + Return "" + Catch End +Static Private Sub SearchDesktop() + + Dim sDesktop As String + If Application.Theme Then Return + sDesktop = GetDesktop() + If $bDebug Then Error "gb.form: desktop is " & sDesktop + Application.Theme = LCase(sDesktop) + +End + Static Private Sub LoadMap(sMap As String) Dim hFile As File @@ -83,7 +103,7 @@ Static Private Sub AddPath(sMap As String, sPath As String, Optional sPattern As If sMap Then sPath = sMap & ":" & sPath If Not $aIconPath.Exist(sPath) Then $aIconPath.Add(sPath) - If $bDebug Then Debug sPath + If $bDebug Then Error "gb.form: add icon path: "; sPath Endif End @@ -100,7 +120,7 @@ Static Private Sub InitTheme() Dim sTheme As String If Not $bDebug Then - If Application.Env["GB_STOCK_DEBUG"] Then $bDebug = True + If Application.Env["GB_STOCK"] Then $bDebug = True Endif $aIconPath = New String[] @@ -110,7 +130,7 @@ Static Private Sub InitTheme() Select Case LCase(Application.Theme) - Case "gnome" + Case "gnome", "mate" Try Exec ["gconftool-2", "-g", "/desktop/gnome/interface/icon_theme"] To sTheme diff --git a/gb.desktop/src/gb.desktop/.settings b/gb.desktop/src/gb.desktop/.settings index fc361d40f..17ce3e3b7 100644 --- a/gb.desktop/src/gb.desktop/.settings +++ b/gb.desktop/src/gb.desktop/.settings @@ -24,23 +24,9 @@ SearchComment=False SearchString=True [OpenFile] -File[1]=".src/_Desktop_Passwords.class:83.16" -File[2]=".src/DesktopWindow.class:120.0" -File[3]=".src/Atom.class:8.14" -File[4]=".src/Main.module:8.28" -File[5]=".src/_DesktopVirtual.class:0.0" -File[6]=".src/Desktop.class:65.2" -File[7]=".src/_Desktop_Windows.class:55.2" -File[8]=".src/_Desktop_ScreenSaver.class:0.0" -File[9]="xdg-utils/xdg-screensaver:0.0" -File[10]="xdg-utils/xdg-su:0.0" -File[11]="xdg-utils/xdg-settings:0.0" -File[12]="xdg-utils/xdg-copy:0.0" -File[13]="xdg-utils/xdg-email:0.0" -File[14]="xdg-utils/xdg-open:559.13" -Active=15 -File[15]="xdg-utils/xdg-terminal:0.0" -Count=15 +Active=1 +File[1]=".src/Desktop.class:207.0" +Count=1 [Watches] Count=0