@@ -62,7 +62,7 @@ static void detectGTKFromSettings(FFGTKResult* result)
62
62
63
63
const FFDisplayServerResult * wmde = ffConnectDisplayServer ();
64
64
65
- if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_XFCE4 ) == 0 )
65
+ if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_XFCE4 ))
66
66
{
67
67
themeName = ffSettingsGetXFConf ("xsettings" , "/Net/ThemeName" , FF_VARIANT_TYPE_STRING ).strValue ;
68
68
iconsName = ffSettingsGetXFConf ("xsettings" , "/Net/IconThemeName" , FF_VARIANT_TYPE_STRING ).strValue ;
@@ -71,36 +71,36 @@ static void detectGTKFromSettings(FFGTKResult* result)
71
71
cursorSize = ffSettingsGetXFConf ("xsettings" , "/Gtk/CursorThemeSize" , FF_VARIANT_TYPE_INT ).intValue ;
72
72
wallpaper = ffSettingsGetXFConfFirstMatch ("xfce4-desktop" , "/backdrop/screen0" , FF_VARIANT_TYPE_STRING , NULL , testXfconfWallpaperPropKey ).strValue ;
73
73
}
74
- else if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_CINNAMON ) == 0 )
74
+ else if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_CINNAMON ))
75
75
{
76
- themeName = ffSettingsGet ("/org/cinnamon/desktop/interface/gtk-theme" , "org.cinnamon.desktop.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
77
- iconsName = ffSettingsGet ("/org/cinnamon/desktop/interface/icon-theme" , "org.cinnamon.desktop.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
78
- fontName = ffSettingsGet ("/org/cinnamon/desktop/interface/font-name" , "org.cinnamon.desktop.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
79
- cursorTheme = ffSettingsGet ("/org/cinnamon/desktop/interface/cursor-theme" , "org.cinnamon.desktop.interface" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
80
- cursorSize = ffSettingsGet ("/org/cinnamon/desktop/interface/cursor-size" , "org.cinnamon.desktop.interface" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
81
- wallpaper = ffSettingsGet ("/org/cinnamon/desktop/background/picture-uri" , "org.cinnamon.desktop.background" , NULL , "picture-uri" , FF_VARIANT_TYPE_STRING ).strValue ;
76
+ themeName = ffSettingsGetGnome ("/org/cinnamon/desktop/interface/gtk-theme" , "org.cinnamon.desktop.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
77
+ iconsName = ffSettingsGetGnome ("/org/cinnamon/desktop/interface/icon-theme" , "org.cinnamon.desktop.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
78
+ fontName = ffSettingsGetGnome ("/org/cinnamon/desktop/interface/font-name" , "org.cinnamon.desktop.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
79
+ cursorTheme = ffSettingsGetGnome ("/org/cinnamon/desktop/interface/cursor-theme" , "org.cinnamon.desktop.interface" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
80
+ cursorSize = ffSettingsGetGnome ("/org/cinnamon/desktop/interface/cursor-size" , "org.cinnamon.desktop.interface" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
81
+ wallpaper = ffSettingsGetGnome ("/org/cinnamon/desktop/background/picture-uri" , "org.cinnamon.desktop.background" , NULL , "picture-uri" , FF_VARIANT_TYPE_STRING ).strValue ;
82
82
}
83
- else if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_MATE ) == 0 )
83
+ else if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_MATE ))
84
84
{
85
- themeName = ffSettingsGet ("/org/mate/interface/gtk-theme" , "org.mate.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
86
- iconsName = ffSettingsGet ("/org/mate/interface/icon-theme" , "org.mate.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
87
- fontName = ffSettingsGet ("/org/mate/interface/font-name" , "org.mate.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
88
- cursorTheme = ffSettingsGet ("/org/mate/peripherals-mouse/cursor-theme" , "org.mate.peripherals-mouse" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
89
- cursorSize = ffSettingsGet ("/org/mate/peripherals-mouse/cursor-size" , "org.mate.peripherals-mouse" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
90
- wallpaper = ffSettingsGet ("/org/mate/desktop/background" , "org.mate.background" , NULL , "picture-filename" , FF_VARIANT_TYPE_STRING ).strValue ;
85
+ themeName = ffSettingsGetGnome ("/org/mate/interface/gtk-theme" , "org.mate.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
86
+ iconsName = ffSettingsGetGnome ("/org/mate/interface/icon-theme" , "org.mate.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
87
+ fontName = ffSettingsGetGnome ("/org/mate/interface/font-name" , "org.mate.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
88
+ cursorTheme = ffSettingsGetGnome ("/org/mate/peripherals-mouse/cursor-theme" , "org.mate.peripherals-mouse" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
89
+ cursorSize = ffSettingsGetGnome ("/org/mate/peripherals-mouse/cursor-size" , "org.mate.peripherals-mouse" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
90
+ wallpaper = ffSettingsGetGnome ("/org/mate/desktop/background" , "org.mate.background" , NULL , "picture-filename" , FF_VARIANT_TYPE_STRING ).strValue ;
91
91
}
92
92
else if (
93
- ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_GNOME ) == 0 ||
94
- ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_GNOME_CLASSIC ) == 0 ||
95
- ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_UNITY ) == 0 ||
96
- ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_BUDGIE ) == 0
93
+ ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_GNOME ) ||
94
+ ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_GNOME_CLASSIC ) ||
95
+ ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_UNITY ) ||
96
+ ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_BUDGIE )
97
97
) {
98
- themeName = ffSettingsGet ("/org/gnome/desktop/interface/gtk-theme" , "org.gnome.desktop.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
99
- iconsName = ffSettingsGet ("/org/gnome/desktop/interface/icon-theme" , "org.gnome.desktop.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
100
- fontName = ffSettingsGet ("/org/gnome/desktop/interface/font-name" , "org.gnome.desktop.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
101
- cursorTheme = ffSettingsGet ("/org/gnome/desktop/interface/cursor-theme" , "org.gnome.desktop.interface" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
102
- cursorSize = ffSettingsGet ("/org/gnome/desktop/interface/cursor-size" , "org.gnome.desktop.interface" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
103
- wallpaper = ffSettingsGet ("/org/gnome/desktop/background/picture-uri" , "org.gnome.desktop.background" , NULL , "picture-uri" , FF_VARIANT_TYPE_STRING ).strValue ;
98
+ themeName = ffSettingsGetGnome ("/org/gnome/desktop/interface/gtk-theme" , "org.gnome.desktop.interface" , NULL , "gtk-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
99
+ iconsName = ffSettingsGetGnome ("/org/gnome/desktop/interface/icon-theme" , "org.gnome.desktop.interface" , NULL , "icon-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
100
+ fontName = ffSettingsGetGnome ("/org/gnome/desktop/interface/font-name" , "org.gnome.desktop.interface" , NULL , "font-name" , FF_VARIANT_TYPE_STRING ).strValue ;
101
+ cursorTheme = ffSettingsGetGnome ("/org/gnome/desktop/interface/cursor-theme" , "org.gnome.desktop.interface" , NULL , "cursor-theme" , FF_VARIANT_TYPE_STRING ).strValue ;
102
+ cursorSize = ffSettingsGetGnome ("/org/gnome/desktop/interface/cursor-size" , "org.gnome.desktop.interface" , NULL , "cursor-size" , FF_VARIANT_TYPE_INT ).intValue ;
103
+ wallpaper = ffSettingsGetGnome ("/org/gnome/desktop/background/picture-uri" , "org.gnome.desktop.background" , NULL , "picture-uri" , FF_VARIANT_TYPE_STRING ).strValue ;
104
104
}
105
105
106
106
applyGTKSettings (result , themeName , iconsName , fontName , cursorTheme , cursorSize , wallpaper );
0 commit comments