summaryrefslogtreecommitdiff
path: root/mate-panel/panel-reset.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-11 00:01:30 +0200
committerStefano Karapetsas <[email protected]>2012-10-11 00:01:30 +0200
commit876f39364e2106c8cb96fa4a9067359e5a350583 (patch)
tree2936001f23a62397065495e3fd065cb260eff4d7 /mate-panel/panel-reset.c
parent66916b20f16f9f0aad4c527519b70ac3a72bbec7 (diff)
downloadmate-panel-876f39364e2106c8cb96fa4a9067359e5a350583.tar.bz2
mate-panel-876f39364e2106c8cb96fa4a9067359e5a350583.tar.xz
migrate mate-panel to gsettings
Diffstat (limited to 'mate-panel/panel-reset.c')
-rw-r--r--mate-panel/panel-reset.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/mate-panel/panel-reset.c b/mate-panel/panel-reset.c
index 9c53c458..22532da4 100644
--- a/mate-panel/panel-reset.c
+++ b/mate-panel/panel-reset.c
@@ -17,27 +17,26 @@
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
+ *
+ * Authors:
+ * Perberos <[email protected]>
+ * Stefano Karapetsas <[email protected]>
*/
#ifndef __PANEL_RESET_C__
#define __PANEL_RESET_C__
#include <stdlib.h>
+#include <glib.h>
#include "panel-reset.h"
+#include "panel-schemas.h"
+#include <libpanel-util/panel-dconf.h>
void panel_reset()
{
- /* En teoria, al hacer `mate-panel --reset` se podria correr este comando
- * para que se reestablesca la configuracion por defecto del panel. O se
- * borre para que pueda elegir una nueva. Esto ultimo solo si se desarrolla
- * el dialogo de seleccion de configuracion inicial.
- *
- * La configuracion no se borra a travez de los archivos, por que hacer esto
- * no hace que el demonio de configuracion se actualice. Obligando que se
- * deba cerrar sesion antes de volver a abrir el panel.
- * Es por eso que se eliminan las entradas a travez de mate-conf.
- */
- system("mateconftool-2 --recursive-unset /apps/panel"); // unix like
+ panel_dconf_recursive_reset (PANEL_GENERAL_PATH, NULL);
+ panel_dconf_recursive_reset (PANEL_TOPLEVEL_PATH, NULL);
+ panel_dconf_recursive_reset (PANEL_OBJECT_PATH, NULL);
/* TODO: send a dbus message to mate-panel, if active, to reload the panel
* configuration */