diff options
author | Stefano Karapetsas <[email protected]> | 2012-10-23 19:03:44 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-10-23 19:03:44 +0200 |
commit | b3e27b1d6a0f11c5835f5829bac3861e2147b17e (patch) | |
tree | a74502d15d303f26fb2bc87f9ab4fb741a1a727a /capplets/appearance/mate-wp-xml.c | |
parent | 46787e474859801435542191480e2851f7fd870c (diff) | |
download | mate-control-center-b3e27b1d6a0f11c5835f5829bac3861e2147b17e.tar.bz2 mate-control-center-b3e27b1d6a0f11c5835f5829bac3861e2147b17e.tar.xz |
migrate appearance applet to gsettings
Diffstat (limited to 'capplets/appearance/mate-wp-xml.c')
-rw-r--r-- | capplets/appearance/mate-wp-xml.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/capplets/appearance/mate-wp-xml.c b/capplets/appearance/mate-wp-xml.c index 62b30de0..d6b0c71d 100644 --- a/capplets/appearance/mate-wp-xml.c +++ b/capplets/appearance/mate-wp-xml.c @@ -145,7 +145,6 @@ static void mate_wp_xml_load_xml(AppearanceData* data, const char* filename) { MateWPItem * wp; char *pcolor = NULL, *scolor = NULL; - char *s; gboolean have_scale = FALSE, have_shade = FALSE; wp = g_new0(MateWPItem, 1); @@ -266,26 +265,22 @@ static void mate_wp_xml_load_xml(AppearanceData* data, const char* filename) /* Verify the colors and alloc some GdkColors here */ if (!have_scale) { - s = mateconf_client_get_string(data->client, WP_OPTIONS_KEY, NULL); - wp->options = wp_item_string_to_option (s); - g_free (s); + wp->options = g_settings_get_enum(data->wp_settings, WP_OPTIONS_KEY); } if (!have_shade) { - s = mateconf_client_get_string(data->client, WP_SHADING_KEY, NULL); - wp->shade_type = wp_item_string_to_shading (s); - g_free (s); + wp->shade_type = g_settings_get_enum(data->wp_settings, WP_SHADING_KEY); } if (pcolor == NULL) { - pcolor = mateconf_client_get_string(data->client, WP_PCOLOR_KEY, NULL); + pcolor = g_settings_get_string(data->wp_settings, WP_PCOLOR_KEY); } if (scolor == NULL) { - scolor = mateconf_client_get_string (data->client, WP_SCOLOR_KEY, NULL); + scolor = g_settings_get_string (data->wp_settings, WP_SCOLOR_KEY); } gdk_color_parse(pcolor, &color1); |