From 876f39364e2106c8cb96fa4a9067359e5a350583 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 11 Oct 2012 00:01:30 +0200 Subject: migrate mate-panel to gsettings --- mate-panel/panel-reset.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'mate-panel/panel-reset.c') 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 + * Stefano Karapetsas */ #ifndef __PANEL_RESET_C__ #define __PANEL_RESET_C__ #include +#include #include "panel-reset.h" +#include "panel-schemas.h" +#include 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 */ -- cgit v1.2.1