From eea33a0d62b99342a67becde98d2b7eb78754896 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 23 Apr 2014 20:01:33 +0200 Subject: Use common GSettings function from libmate-desktop --- mate-panel/panel-profile.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mate-panel/panel-profile.c') diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index 5ddca421..3f41207e 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -33,6 +33,7 @@ #include #include +#include #include "applet.h" #include "panel.h" @@ -41,7 +42,6 @@ #include "panel-multiscreen.h" #include "panel-toplevel.h" #include "panel-lockdown.h" -#include "panel-gsettings.h" #include "panel-schemas.h" typedef struct { @@ -946,7 +946,7 @@ panel_profile_add_to_list (PanelGSettingsKeyType type, key = g_strdup (PANEL_OBJECT_ID_LIST_KEY); if ((key != NULL) && (new_id != NULL)) { - panel_gsettings_append_strv (profile_settings, + mate_gsettings_append_strv (profile_settings, key, new_id); g_free (key); @@ -964,7 +964,7 @@ panel_profile_remove_from_list (PanelGSettingsKeyType type, else if (type == PANEL_GSETTINGS_OBJECTS) key = g_strdup (PANEL_OBJECT_ID_LIST_KEY); - panel_gsettings_remove_all_from_strv (profile_settings, + mate_gsettings_remove_all_from_strv (profile_settings, key, id); g_free (key); @@ -1572,7 +1572,7 @@ panel_profile_toplevel_id_list_notify (GSettings *settings, toplevel_ids_strv = g_settings_get_strv (settings, key); - toplevel_ids = panel_gsettings_strv_to_gslist (toplevel_ids_strv); + toplevel_ids = mate_gsettings_strv_to_gslist (toplevel_ids_strv); toplevel_ids = panel_g_slist_make_unique (toplevel_ids, (GCompareFunc)g_strcmp0, FALSE); @@ -1616,7 +1616,7 @@ panel_profile_object_id_list_update (gchar **objects) GSList *sublist = NULL, *l; GSList *object_ids; - object_ids = panel_gsettings_strv_to_gslist (objects); + object_ids = mate_gsettings_strv_to_gslist (objects); object_ids = panel_g_slist_make_unique (object_ids, (GCompareFunc)g_strcmp0, FALSE); -- cgit v1.2.1