@@ -62,7 +62,7 @@ static void detectGTKFromSettings(FFGTKResult* result)
6262
6363 const FFDisplayServerResult * wmde = ffConnectDisplayServer ();
6464
65- if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_XFCE4 ) == 0 )
65+ if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_XFCE4 ))
6666 {
6767 themeName = ffSettingsGetXFConf ("xsettings" , "/Net/ThemeName" , FF_VARIANT_TYPE_STRING ).strValue ;
6868 iconsName = ffSettingsGetXFConf ("xsettings" , "/Net/IconThemeName" , FF_VARIANT_TYPE_STRING ).strValue ;
@@ -71,36 +71,36 @@ static void detectGTKFromSettings(FFGTKResult* result)
7171 cursorSize = ffSettingsGetXFConf ("xsettings" , "/Gtk/CursorThemeSize" , FF_VARIANT_TYPE_INT ).intValue ;
7272 wallpaper = ffSettingsGetXFConfFirstMatch ("xfce4-desktop" , "/backdrop/screen0" , FF_VARIANT_TYPE_STRING , NULL , testXfconfWallpaperPropKey ).strValue ;
7373 }
74- else if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_CINNAMON ) == 0 )
74+ else if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_CINNAMON ))
7575 {
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 ;
8282 }
83- else if (ffStrbufIgnCaseCompS (& wmde -> dePrettyName , FF_DE_PRETTY_MATE ) == 0 )
83+ else if (ffStrbufIgnCaseEqualS (& wmde -> dePrettyName , FF_DE_PRETTY_MATE ))
8484 {
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 ;
9191 }
9292 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 )
9797 ) {
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 ;
104104 }
105105
106106 applyGTKSettings (result , themeName , iconsName , fontName , cursorTheme , cursorSize , wallpaper );
0 commit comments