summaryrefslogtreecommitdiff
path: root/capplets/appearance/theme-installer.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-23 19:03:44 +0200
committerStefano Karapetsas <[email protected]>2012-10-23 19:03:44 +0200
commitb3e27b1d6a0f11c5835f5829bac3861e2147b17e (patch)
treea74502d15d303f26fb2bc87f9ab4fb741a1a727a /capplets/appearance/theme-installer.c
parent46787e474859801435542191480e2851f7fd870c (diff)
downloadmate-control-center-b3e27b1d6a0f11c5835f5829bac3861e2147b17e.tar.bz2
mate-control-center-b3e27b1d6a0f11c5835f5829bac3861e2147b17e.tar.xz
migrate appearance applet to gsettings
Diffstat (limited to 'capplets/appearance/theme-installer.c')
-rw-r--r--capplets/appearance/theme-installer.c30
1 files changed, 19 insertions, 11 deletions
diff --git a/capplets/appearance/theme-installer.c b/capplets/appearance/theme-installer.c
index fec1f001..98de2605 100644
--- a/capplets/appearance/theme-installer.c
+++ b/capplets/appearance/theme-installer.c
@@ -436,32 +436,40 @@ mate_theme_install_real (GtkWindow *parent,
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_APPLY) {
/* apply theme here! */
- MateConfClient *mateconf_client;
-
- mateconf_client = mateconf_client_get_default ();
+ GSettings *settings;
switch (theme_type) {
case THEME_GTK:
- mateconf_client_set_string (mateconf_client, GTK_THEME_KEY, theme_name, NULL);
+ settings = g_settings_new (INTERFACE_SCHEMA);
+ g_settings_set_string (settings, GTK_THEME_KEY, theme_name);
+ g_object_unref (settings);
break;
case THEME_MARCO:
- mateconf_client_set_string (mateconf_client, MARCO_THEME_KEY, theme_name, NULL);
+ settings = g_settings_new (MARCO_SCHEMA);
+ g_settings_set_string (settings, MARCO_THEME_KEY, theme_name);
+ g_object_unref (settings);
break;
case THEME_ICON:
- mateconf_client_set_string (mateconf_client, ICON_THEME_KEY, theme_name, NULL);
+ settings = g_settings_new (INTERFACE_SCHEMA);
+ g_settings_set_string (settings, ICON_THEME_KEY, theme_name);
+ g_object_unref (settings);
break;
case THEME_CURSOR:
- mateconf_client_set_string (mateconf_client, CURSOR_THEME_KEY, theme_name, NULL);
+ settings = g_settings_new (MOUSE_SCHEMA);
+ g_settings_set_string (settings, CURSOR_THEME_KEY, theme_name);
+ g_object_unref (settings);
break;
case THEME_ICON_CURSOR:
- mateconf_client_set_string (mateconf_client, ICON_THEME_KEY, theme_name, NULL);
- mateconf_client_set_string (mateconf_client, CURSOR_THEME_KEY, theme_name, NULL);
+ settings = g_settings_new (INTERFACE_SCHEMA);
+ g_settings_set_string (settings, ICON_THEME_KEY, theme_name);
+ g_object_unref (settings);
+ settings = g_settings_new (MOUSE_SCHEMA);
+ g_settings_set_string (settings, CURSOR_THEME_KEY, theme_name);
+ g_object_unref (settings);
break;
default:
break;
}
-
- g_object_unref (mateconf_client);
}
} else {
dialog = gtk_message_dialog_new (parent,