summaryrefslogtreecommitdiff
path: root/geyes/src/themes.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-04 15:45:50 +0100
committerraveit65 <[email protected]>2020-12-10 15:35:41 +0100
commit5c2cfd426c816c6cddfb2e6f0a26095881e7ee24 (patch)
treec14edc5c9ae57c14e8c1d2d50f0328ec07ac7a70 /geyes/src/themes.c
parent89c85c3ca0d81ac0db527c14e5a3e6daad86dd72 (diff)
downloadmate-applets-5c2cfd426c816c6cddfb2e6f0a26095881e7ee24.tar.bz2
mate-applets-5c2cfd426c816c6cddfb2e6f0a26095881e7ee24.tar.xz
geyes: define GEYES_SETTINGS_THEME_PATH_KEY & GEYES_SETTINGS_SCHEMA
Diffstat (limited to 'geyes/src/themes.c')
-rw-r--r--geyes/src/themes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/geyes/src/themes.c b/geyes/src/themes.c
index 0a2530d1..c399bbb7 100644
--- a/geyes/src/themes.c
+++ b/geyes/src/themes.c
@@ -210,7 +210,9 @@ theme_selected_cb (GtkTreeSelection *selection,
load_theme (eyes_applet, theme);
setup_eyes (eyes_applet);
- g_settings_set_string (eyes_applet->settings, "theme-path", theme);
+ g_settings_set_string (eyes_applet->settings,
+ GEYES_SETTINGS_THEME_PATH_KEY,
+ theme);
g_free (theme);
}
@@ -300,7 +302,7 @@ properties_cb (GtkAction *action,
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (tree), column);
- if (!g_settings_is_writable (eyes_applet->settings, "theme-path")) {
+ if (!g_settings_is_writable (eyes_applet->settings, GEYES_SETTINGS_THEME_PATH_KEY)) {
gtk_widget_set_sensitive (tree, FALSE);
gtk_widget_set_sensitive (label, FALSE);
}