summaryrefslogtreecommitdiff
path: root/mate-panel/panel-reset.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 17:02:14 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 17:02:14 +0100
commit453154a00f0f17e20340e408055e224ea57cc4e8 (patch)
tree01006728be3b989e2a0cacd20b4e287a5d63eec9 /mate-panel/panel-reset.c
parent9043b93048346404662950b55b5d60b7e588e375 (diff)
downloadmate-panel-453154a00f0f17e20340e408055e224ea57cc4e8.tar.bz2
mate-panel-453154a00f0f17e20340e408055e224ea57cc4e8.tar.xz
Fix mate-panel --reset
Diffstat (limited to 'mate-panel/panel-reset.c')
-rw-r--r--mate-panel/panel-reset.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mate-panel/panel-reset.c b/mate-panel/panel-reset.c
index e441f554..6670fc17 100644
--- a/mate-panel/panel-reset.c
+++ b/mate-panel/panel-reset.c
@@ -30,17 +30,19 @@
#include <glib.h>
#include "panel-reset.h"
#include "panel-schemas.h"
-#include <libpanel-util/panel-dconf.h>
void
panel_reset()
{
- panel_dconf_recursive_reset (PANEL_GENERAL_PATH, NULL);
- panel_dconf_recursive_reset (PANEL_TOPLEVEL_PATH, NULL);
- panel_dconf_recursive_reset (PANEL_OBJECT_PATH, NULL);
+ GSettings *settings;
- /* TODO: send a dbus message to mate-panel, if active, to reload the panel
- * configuration */
+ settings = g_settings_new (PANEL_SCHEMA);
+ g_settings_set_strv (settings, PANEL_OBJECT_ID_LIST_KEY, NULL);
+ g_settings_sync ();
+ g_settings_set_strv (settings, PANEL_TOPLEVEL_ID_LIST_KEY, NULL);
+ g_settings_sync ();
+
+ g_object_unref (settings);
}
#endif /* !__PANEL_RESET_C__ */