[gnome-alsamixer] Sanitise GConf path names



commit 7b4c970fe2026a0af10b8d5a3d65fcf8c0f23790
Author: Mohammed AdnÃne Trojette <adn+deb diwi org>
Date:   Tue Jun 26 11:26:54 2012 +0100

    Sanitise GConf path names

 src/gam-app.c         |   18 +++++++++---------
 src/gam-mixer.c       |    8 ++++----
 src/gam-slider-dual.c |    2 +-
 src/gam-slider.c      |    8 ++++----
 src/gam-toggle.c      |    8 ++++----
 5 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/src/gam-app.c b/src/gam-app.c
index e3642b3..ad32887 100644
--- a/src/gam-app.c
+++ b/src/gam-app.c
@@ -331,7 +331,7 @@ gam_app_constructor (GType                  type,
     gam_app_load_prefs (gam_app);
 
     /*gconf_client_notify_add (priv->gconf_client,
-                             "/apps/PAW/gnomealsamixer/preferences/tab_position",
+                             "/apps/gnomealsamixer/preferences/tab_position",
                              (GConfClientNotifyFunc) pawed_app_gconf_notify_func,
                              pawed_app,
                              NULL,
@@ -351,10 +351,10 @@ gam_app_load_prefs (GamApp *gam_app)
     priv = GAM_APP_GET_PRIVATE (gam_app);
 
     width = gconf_client_get_int (priv->gconf_client,
-                                  "/apps/PAW/gnome-alsamixer/geometry/main_window_width",
+                                  "/apps/gnome-alsamixer/geometry/main_window_width",
                                   NULL);
     height = gconf_client_get_int (priv->gconf_client,
-                                   "/apps/PAW/gnome-alsamixer/geometry/main_window_height",
+                                   "/apps/gnome-alsamixer/geometry/main_window_height",
                                    NULL);
 
     if ((height != 0) && (width != 0))
@@ -376,11 +376,11 @@ gam_app_save_prefs (GamApp *gam_app)
     gdk_window_get_geometry (GDK_WINDOW (GTK_WIDGET (gam_app)->window), NULL, NULL, &width, &height, NULL);
 
     gconf_client_set_int (priv->gconf_client,
-                          "/apps/PAW/gnome-alsamixer/geometry/main_window_height",
+                          "/apps/gnome-alsamixer/geometry/main_window_height",
                           height,
                           NULL);
     gconf_client_set_int (priv->gconf_client,
-                          "/apps/PAW/gnome-alsamixer/geometry/main_window_width",
+                          "/apps/gnome-alsamixer/geometry/main_window_width",
                           width,
                           NULL);
 
@@ -630,7 +630,7 @@ gam_app_get_gconf_client (GamApp *gam_app)
 gint
 gam_app_get_mixer_slider_style (GamApp *gam_app)
 {
-    const gchar *key = "/apps/PAW/gnome-alsamixer/geometry/mixer_slider_style";
+    const gchar *key = "/apps/gnome-alsamixer/geometry/mixer_slider_style";
     gint style = 0;
 
     g_return_if_fail (GAM_IS_APP (gam_app));
@@ -646,7 +646,7 @@ gam_app_get_mixer_slider_style (GamApp *gam_app)
 void
 gam_app_set_mixer_slider_style (GamApp *gam_app, gint style)
 {
-    const gchar *key = "/apps/PAW/gnome-alsamixer/geometry/mixer_slider_style";
+    const gchar *key = "/apps/gnome-alsamixer/geometry/mixer_slider_style";
 
     g_return_if_fail (GAM_IS_APP (gam_app));
 
@@ -661,7 +661,7 @@ gam_app_set_mixer_slider_style (GamApp *gam_app, gint style)
 gint
 gam_app_get_slider_toggle_style (GamApp *gam_app)
 {
-    const gchar *key = "/apps/PAW/gnome-alsamixer/geometry/mixer_slider_toggle_style";
+    const gchar *key = "/apps/gnome-alsamixer/geometry/mixer_slider_toggle_style";
     gint style = 1;
 
     g_return_if_fail (GAM_IS_APP (gam_app));
@@ -677,7 +677,7 @@ gam_app_get_slider_toggle_style (GamApp *gam_app)
 void
 gam_app_set_slider_toggle_style (GamApp *gam_app, gint style)
 {
-    const gchar *key = "/apps/PAW/gnome-alsamixer/geometry/mixer_slider_toggle_style";
+    const gchar *key = "/apps/gnome-alsamixer/geometry/mixer_slider_toggle_style";
 
     g_return_if_fail (GAM_IS_APP (gam_app));
 
diff --git a/src/gam-mixer.c b/src/gam-mixer.c
index f0e4f74..8be4345 100644
--- a/src/gam-mixer.c
+++ b/src/gam-mixer.c
@@ -478,7 +478,7 @@ gam_mixer_get_display_name (GamMixer *gam_mixer)
 
     priv = GAM_MIXER_GET_PRIVATE (gam_mixer);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_names/%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_names/%s",
                            gam_mixer_get_config_name (gam_mixer));
 
     name = gconf_client_get_string (gam_app_get_gconf_client (GAM_APP (priv->app)),
@@ -500,7 +500,7 @@ gam_mixer_set_display_name (GamMixer *gam_mixer, const gchar *name)
 
     priv = GAM_MIXER_GET_PRIVATE (gam_mixer);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_names/%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_names/%s",
                            gam_mixer_get_config_name (gam_mixer));
 
     gconf_client_set_string (gam_app_get_gconf_client (GAM_APP (priv->app)),
@@ -526,7 +526,7 @@ gam_mixer_get_visible (GamMixer *gam_mixer)
 
     priv = GAM_MIXER_GET_PRIVATE (gam_mixer);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_mixers/%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_mixers/%s",
                            gam_mixer_get_config_name (gam_mixer));
 
     if (gconf_client_dir_exists (gam_app_get_gconf_client (GAM_APP (priv->app)), key, NULL))
@@ -549,7 +549,7 @@ gam_mixer_set_visible (GamMixer *gam_mixer, gboolean visible)
 
     priv = GAM_MIXER_GET_PRIVATE (gam_mixer);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_mixers/%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_mixers/%s",
                            gam_mixer_get_config_name (gam_mixer));
 
     gconf_client_set_bool (gam_app_get_gconf_client (GAM_APP (priv->app)),
diff --git a/src/gam-slider-dual.c b/src/gam-slider-dual.c
index 139a8e7..1c397bf 100644
--- a/src/gam-slider-dual.c
+++ b/src/gam-slider-dual.c
@@ -446,7 +446,7 @@ gam_slider_dual_set_locked (GamSliderDual *gam_slider_dual, gboolean locked)
 
     priv = GAM_SLIDER_DUAL_GET_PRIVATE (gam_slider_dual);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/slider_locked/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/slider_locked/%s-%s",
                            gam_mixer_get_config_name (gam_slider_get_mixer (GAM_SLIDER (gam_slider_dual))),
                            gam_slider_get_config_name (GAM_SLIDER (gam_slider_dual)));
 
diff --git a/src/gam-slider.c b/src/gam-slider.c
index 319a5a0..442976b 100644
--- a/src/gam-slider.c
+++ b/src/gam-slider.c
@@ -481,7 +481,7 @@ gam_slider_get_display_name (GamSlider *gam_slider)
 
     disp_name = g_strndup (gam_slider_get_name (gam_slider), 8);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/slider_display_names/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/slider_display_names/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_slider_get_config_name (gam_slider));
 
@@ -508,7 +508,7 @@ gam_slider_set_display_name (GamSlider *gam_slider, const gchar *name)
 
     priv = GAM_SLIDER_GET_PRIVATE (gam_slider);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/slider_display_names/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/slider_display_names/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_slider_get_config_name (gam_slider));
 
@@ -533,7 +533,7 @@ gam_slider_get_visible (GamSlider *gam_slider)
 
     priv = GAM_SLIDER_GET_PRIVATE (gam_slider);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_sliders/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_sliders/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_slider_get_config_name (gam_slider));
 
@@ -557,7 +557,7 @@ gam_slider_set_visible (GamSlider *gam_slider, gboolean visible)
 
     priv = GAM_SLIDER_GET_PRIVATE (gam_slider);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_sliders/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_sliders/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_slider_get_config_name (gam_slider));
 
diff --git a/src/gam-toggle.c b/src/gam-toggle.c
index 29f035e..cf34e27 100644
--- a/src/gam-toggle.c
+++ b/src/gam-toggle.c
@@ -410,7 +410,7 @@ gam_toggle_get_display_name (GamToggle *gam_toggle)
 
     priv = GAM_TOGGLE_GET_PRIVATE (gam_toggle);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/toggle_display_names/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/toggle_display_names/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_toggle_get_config_name (gam_toggle));
 
@@ -433,7 +433,7 @@ gam_toggle_set_display_name (GamToggle *gam_toggle, const gchar *name)
 
     priv = GAM_TOGGLE_GET_PRIVATE (gam_toggle);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/toggle_display_names/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/toggle_display_names/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_toggle_get_config_name (gam_toggle));
 
@@ -458,7 +458,7 @@ gam_toggle_get_visible (GamToggle *gam_toggle)
 
     priv = GAM_TOGGLE_GET_PRIVATE (gam_toggle);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_toggles/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_toggles/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_toggle_get_config_name (gam_toggle));
 
@@ -482,7 +482,7 @@ gam_toggle_set_visible (GamToggle *gam_toggle, gboolean visible)
 
     priv = GAM_TOGGLE_GET_PRIVATE (gam_toggle);
 
-    key = g_strdup_printf ("/apps/PAW/gnome-alsamixer/display_toggles/%s-%s",
+    key = g_strdup_printf ("/apps/gnome-alsamixer/display_toggles/%s-%s",
                            gam_mixer_get_config_name (GAM_MIXER (priv->mixer)),
                            gam_toggle_get_config_name (gam_toggle));
 



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