[gnome-panel] panel: Replace '-' with '_' in applet gconf prefs path



commit 45f25f52e9f22c82e7b05615c0c3482737ab80ec
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Mar 25 15:30:08 2011 +0100

    panel: Replace '-' with '_' in applet gconf prefs path
    
    The applet ids are from GSettings (with '-'), but applets might store
    prefs in gconf where '_' is used.

 gnome-panel/panel-applet-frame.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index 505e539..cb53048 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -846,7 +846,13 @@ panel_applet_frame_activating_get_locked_down (PanelAppletFrameActivating *frame
 gchar *
 panel_applet_frame_activating_get_conf_path (PanelAppletFrameActivating *frame_act)
 {
-	return g_strdup_printf (PANEL_APPLET_PREFS_KEY, frame_act->id);
+	char *ret;
+
+	ret = g_strdup_printf (PANEL_APPLET_PREFS_KEY, frame_act->id);
+	/* gconf uses '_' and not '-' */
+	g_strdelimit (ret, "-", '_');
+
+	return ret;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]