summaryrefslogtreecommitdiff
path: root/charpick/properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-24 18:17:36 +0100
committerStefano Karapetsas <[email protected]>2012-11-24 18:17:36 +0100
commitd2d15da67e19e821d051d1b2382885854acd140c (patch)
tree21989327fc0e6a8d36e37318de970c7f6e72b6fe /charpick/properties.c
parent8ea3054c1e05445f990c98db033754cf190d2a7a (diff)
downloadmate-applets-d2d15da67e19e821d051d1b2382885854acd140c.tar.bz2
mate-applets-d2d15da67e19e821d051d1b2382885854acd140c.tar.xz
charpick: migrate to gsettings
Diffstat (limited to 'charpick/properties.c')
-rw-r--r--charpick/properties.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/charpick/properties.c b/charpick/properties.c
index c3347352..ba979385 100644
--- a/charpick/properties.c
+++ b/charpick/properties.c
@@ -162,10 +162,10 @@ add_palette_cb (GtkDialog *dialog, int response_id, charpick_data *curr_data)
curr_data->charlist = curr_data->chartable->data;
build_table (curr_data);
- if (key_writable (MATE_PANEL_APPLET (curr_data->applet), "current_list"))
- mate_panel_applet_mateconf_set_string (MATE_PANEL_APPLET (curr_data->applet),
- "current_list",
- curr_data->charlist, NULL);
+ if (g_settings_is_writable (curr_data->settings, "current-list"))
+ g_settings_set_string (curr_data->settings,
+ "current-list",
+ curr_data->charlist);
}
save_chartable (curr_data);
@@ -226,8 +226,8 @@ edit_palette_cb (GtkDialog *dialog, int response_id, charpick_data *curr_data)
curr_data->charlist = new;
build_table (curr_data);
- if (key_writable (MATE_PANEL_APPLET (curr_data->applet), "current_list"))
- mate_panel_applet_mateconf_set_string (MATE_PANEL_APPLET (curr_data->applet), "current_list", curr_data->charlist, NULL);
+ if (g_settings_is_writable (curr_data->settings, "current-list"))
+ g_settings_set_string (curr_data->settings, "current-list", curr_data->charlist);
}
g_free (charlist);
@@ -315,8 +315,8 @@ delete_palette (GtkButton *button, charpick_data *curr_data)
if (g_ascii_strcasecmp (curr_data->charlist, charlist) == 0) {
curr_data->charlist = curr_data->chartable != NULL ?
curr_data->chartable->data : "";
- if (key_writable (MATE_PANEL_APPLET (curr_data->applet), "current_list"))
- mate_panel_applet_mateconf_set_string (MATE_PANEL_APPLET (curr_data->applet), "current_list", curr_data->charlist, NULL);
+ if (g_settings_is_writable (curr_data->settings, "current-list"))
+ g_settings_set_string (curr_data->settings, "current-list", curr_data->charlist);
}
g_free (charlist);
@@ -489,7 +489,7 @@ static void default_chars_frame_create(charpick_data *curr_data)
set_access_namedesc (button, _("Delete button"),
_("Click to delete the selected palette"));
- if ( ! key_writable (MATE_PANEL_APPLET (curr_data->applet), "chartable"))
+ if ( ! g_settings_is_writable (curr_data->settings, "chartable"))
gtk_widget_set_sensitive (vbox3, FALSE);
return;