[gnome-power-manager] Trivially rename a GConf key
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Trivially rename a GConf key
- Date: Sun, 26 Apr 2009 15:02:26 -0400 (EDT)
commit af646715bf3180176274edba7f4f341bc1bed2d7
Author: Richard Hughes <richard hughsie com>
Date: Sun Apr 26 20:01:24 2009 +0100
Trivially rename a GConf key
---
src/gpm-common.h | 2 +-
src/gpm-manager.c | 2 +-
src/gpm-prefs-core.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gpm-common.h b/src/gpm-common.h
index f89e856..303f350 100644
--- a/src/gpm-common.h
+++ b/src/gpm-common.h
@@ -150,7 +150,7 @@ G_BEGIN_DECLS
#define GPM_CONF_UI_ICON_POLICY GPM_CONF_DIR "/ui/icon_policy"
#define GPM_CONF_UI_SHOW_CPUFREQ GPM_CONF_DIR "/ui/cpufreq_show"
#define GPM_CONF_UI_SHOW_ACTIONS_IN_MENU GPM_CONF_DIR "/ui/show_actions_in_menu"
-#define GPM_CONF_UI_ENABLE_BEEPING GPM_CONF_DIR "/ui/enable_sound"
+#define GPM_CONF_UI_ENABLE_SOUND GPM_CONF_DIR "/ui/enable_sound"
#define GPM_CONF_UI_SHOW_CONTEXT_MENU GPM_CONF_DIR "/ui/show_context_menu"
/* we use the gnome-session key now */
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index e2639f5..cf3051d 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -168,7 +168,7 @@ gpm_manager_play (GpmManager *manager, GpmManagerSound action, gboolean force)
const gchar *desc = NULL;
gboolean ret;
- ret = gconf_client_get_bool (manager->priv->conf, GPM_CONF_UI_ENABLE_BEEPING, NULL);
+ ret = gconf_client_get_bool (manager->priv->conf, GPM_CONF_UI_ENABLE_SOUND, NULL);
if (!ret && !force) {
egg_debug ("ignoring sound due to policy");
return FALSE;
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 89b6e71..b37ae3e 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -757,7 +757,7 @@ prefs_setup_notification (GpmPrefs *prefs)
/* set up the sound checkbox */
gpm_prefs_setup_checkbox (prefs, "checkbutton_notification_sound",
- GPM_CONF_UI_ENABLE_BEEPING);
+ GPM_CONF_UI_ENABLE_SOUND);
if (prefs->priv->has_batteries) {
/* there's no use case for displaying this option */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]