[GB.FORM]
* NEW: Try to support the Mate desktop in the Stock class. git-svn-id: svn://localhost/gambas/trunk@4971 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
e9fbb77562
commit
712fca7970
2 changed files with 18 additions and 3 deletions
|
@ -130,7 +130,7 @@ Static Private Sub InitTheme()
|
|||
|
||||
Select Case LCase(Application.Theme)
|
||||
|
||||
Case "gnome", "mate"
|
||||
Case "gnome"
|
||||
|
||||
Try Exec ["gconftool-2", "-g", "/desktop/gnome/interface/icon_theme"] To sTheme
|
||||
|
||||
|
@ -143,6 +143,20 @@ Static Private Sub InitTheme()
|
|||
AddPath("gnome", "/usr/share/icons/hicolor")
|
||||
'AddPath("gnome", "/usr/X11R6/share/icons/hicolor")
|
||||
|
||||
Case "mate"
|
||||
|
||||
Try Exec ["mateconftool-2", "-g", "/desktop/mate/interface/icon_theme"] To sTheme
|
||||
|
||||
If sTheme Then
|
||||
sTheme = Trim(sTheme)
|
||||
GetAllThemePath("gnome", ["~/.icons", "/usr/share/icons"], sTheme)
|
||||
Endif
|
||||
|
||||
AddPath("gnome", "/usr/share/icons/mate")
|
||||
AddPath("gnome", "/usr/share/icons/gnome")
|
||||
AddPath("gnome", "/usr/share/icons/hicolor")
|
||||
'AddPath("gnome", "/usr/X11R6/share/icons/hicolor")
|
||||
|
||||
Case "kde"
|
||||
|
||||
Try Exec ["kde-config", "--path", "icon"] To sIconPath
|
||||
|
|
|
@ -24,9 +24,10 @@ SearchComment=False
|
|||
SearchString=True
|
||||
|
||||
[OpenFile]
|
||||
Active=1
|
||||
File[1]=".src/Desktop.class:207.0"
|
||||
Count=1
|
||||
Active=2
|
||||
File[2]=".src/_Desktop_Passwords.class:26.24"
|
||||
Count=2
|
||||
|
||||
[Watches]
|
||||
Count=0
|
||||
|
|
Loading…
Reference in a new issue