[gnome-settings-daemon] keyboard: use #define for key names
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] keyboard: use #define for key names
- Date: Tue, 19 Oct 2010 13:55:45 +0000 (UTC)
commit fef013eb00828bedebdb67c13398902b1d3ca6de
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 19 14:55:29 2010 +0100
keyboard: use #define for key names
plugins/keyboard/gsd-keyboard-xkb.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index f94e5ef..e38f276 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -43,6 +43,9 @@
#define GTK_RESPONSE_PRINT 2
#define SETTINGS_KEYBOARD_DIR "org.gnome.settings-daemon.plugins.keyboard"
+#define DISABLE_INDICATOR_KEY "disable-indicator"
+#define DUPLICATE_LEDS_KEY "duplicate-leds"
+
static GsdKeyboardManager *manager = NULL;
static XklEngine *xkl_engine;
@@ -63,10 +66,6 @@ static GSettings *settings_keyboard = NULL;
static PostActivationCallback pa_callback = NULL;
static void *pa_callback_user_data = NULL;
-static const char DISABLE_INDICATOR_KEY[] = "disable-indicator";
-
-static const char DUPLICATE_LEDS_KEY[] = "duplicate-leds";
-
static const char *gdm_keyboard_layout = NULL;
static GtkStatusIcon *icon = NULL;
@@ -172,8 +171,7 @@ apply_desktop_settings (void)
before activating them */
gkbd_desktop_config_activate (¤t_config);
- show_leds =
- g_settings_get_boolean (settings_plugin, DUPLICATE_LEDS_KEY);
+ show_leds = g_settings_get_boolean (settings_plugin, DUPLICATE_LEDS_KEY);
for (i = sizeof (indicator_icons) / sizeof (indicator_icons[0]);
--i >= 0;) {
gtk_status_icon_set_visible (indicator_icons[i],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]