summaryrefslogtreecommitdiff
path: root/capplets/appearance/appearance-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/appearance/appearance-main.c')
-rw-r--r--capplets/appearance/appearance-main.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c
index a7995105..6ff41249 100644
--- a/capplets/appearance/appearance-main.c
+++ b/capplets/appearance/appearance-main.c
@@ -60,7 +60,15 @@ init_appearance_data (int *argc, char ***argv, GOptionContext *context)
else
{
data = g_new (AppearanceData, 1);
- data->client = mateconf_client_get_default ();
+ data->settings = g_settings_new (APPEARANCE_SCHEMA);
+ data->wp_settings = g_settings_new (WP_SCHEMA);
+ data->caja_settings = g_settings_new (CAJA_SCHEMA);
+ data->interface_settings = g_settings_new (INTERFACE_SCHEMA);
+ data->marco_settings = g_settings_new (MARCO_SCHEMA);
+ data->mouse_settings = g_settings_new (MOUSE_SCHEMA);
+#ifdef HAVE_XFT2
+ data->font_settings = g_settings_new (FONT_RENDER_SCHEMA);
+#endif /* HAVE_XFT2 */
data->ui = ui;
data->thumb_factory = mate_desktop_thumbnail_factory_new (MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL);
}
@@ -84,7 +92,15 @@ main_window_response (GtkWidget *widget,
font_shutdown (data);
g_object_unref (data->thumb_factory);
- g_object_unref (data->client);
+ g_object_unref (data->settings);
+ g_object_unref (data->wp_settings);
+ g_object_unref (data->caja_settings);
+ g_object_unref (data->interface_settings);
+ g_object_unref (data->marco_settings);
+ g_object_unref (data->mouse_settings);
+#ifdef HAVE_XFT2
+ g_object_unref (data->font_settings);
+#endif /* HAVE_XFT2 */
g_object_unref (data->ui);
}
else if (response_id == GTK_RESPONSE_HELP)