[notification-daemon] Use defined values instead of hardcoded strings for gconf keys



commit 480b28c4cb89ab46240d73c8cce6bb111b32cbf6
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Jan 28 23:23:20 2010 -0500

    Use defined values instead of hardcoded strings for gconf keys

 src/daemon/daemon.c  |    2 +-
 src/daemon/engines.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 20b057a..88962d3 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -896,7 +896,7 @@ popup_location_changed_cb (GConfClient *client,
                 stack_location = get_stack_location_from_string (slocation);
         } else {
                 gconf_client_set_string (get_gconf_client (),
-                                         "/apps/notification-daemon/popup_location",
+                                         GCONF_KEY_POPUP_LOCATION,
                                          popup_stack_locations
                                          [POPUP_STACK_DEFAULT_INDEX].
                                          identifier,
diff --git a/src/daemon/engines.c b/src/daemon/engines.c
index c542950..3b9411f 100644
--- a/src/daemon/engines.c
+++ b/src/daemon/engines.c
@@ -184,7 +184,7 @@ get_theme_engine (void)
                 if (theme_prop_notify_id == 0) {
                         theme_prop_notify_id =
                                 gconf_client_notify_add (client,
-                                                         "/apps/notification-daemon/theme",
+                                                         GCONF_KEY_THEME,
                                                          theme_changed_cb,
                                                          NULL,
                                                          NULL,



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