[Gambas-user] [Bug] Add Xfce 4.6 stock icons.

Federico Leite frederic.176 at ...626...
Tue Feb 22 21:54:07 CET 2011


Hi, in Xfce 4.6, to get the icon theme you're using, you must parse the file
"~ / .config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml. " I will
provide the Case "xfce".



    Case "xfce"
>
>       Try hFile = Open
> "~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml"
>       If Not Error Then
>         While Not Eof(hFile)
>           Line Input #hFile, sLig
>           If sLig Like "*<property name=\"IconThemeName\" type=\"string\"
> value=\"*\"/>*" Then
>             Try sTheme = Trim(Scan(sLig, "*<property name=\"IconThemeName\"
> type=\"string\" value=\"*\"/>*")[1])
>             Break
>           Endif
>         Wend
>         Close #hFile
>       Endif
>
>       If sTheme Then
>         GetAllThemePath("gnome", ["~/.icons", "/usr/share/icons"], sTheme)
>         'GetAllThemePath("gnome", "/usr/X11R6/share/icons", sTheme)
>       Endif
>
>       AddPath("gnome", "/usr/share/icons/gnome")


Hope to add more of desktops enviroments support in Stock class. Sorry for
my english ^ ^

Regards,

-- 
Federico Leite
##############################################
Areida Developer



More information about the User mailing list