[gnome-settings-daemon] keyboard: Rename "duplicate-leds" to something meaningful



commit 85cb0529aa17e1a6e1e2fb60f8ea017e5af7d161
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 19 15:02:18 2010 +0100

    keyboard: Rename "duplicate-leds" to something meaningful

 ...tings-daemon.plugins.keyboard.gschema.xml.in.in |   14 +++++++-------
 plugins/keyboard/gsd-keyboard-xkb.c                |    4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in.in b/data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in.in
index c6454a8..78c68ac 100644
--- a/data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in.in
+++ b/data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in.in
@@ -3,22 +3,22 @@
     <key name="active" type="b">
       <default>true</default>
       <_summary>Activation of this plugin</_summary>
-      <_description>Whether this plugin would be activated by gnome-settings-daemon or not</_description>
+      <_description>Whether this plugin would be activated by gnome-settings-daemon or not.</_description>
     </key>
     <key name="priority" type="i">
       <default>6</default>
       <_summary>Priority to use for this plugin</_summary>
-      <_description>Priority to use for this plugin in gnome-settings-daemon startup queue</_description>
+      <_description>Priority to use for this plugin in gnome-settings-daemon startup queue.</_description>
     </key>
     <key name="disable-indicator" type="b">
       <default>false</default>
-      <_summary>Never show indicator</_summary>
-      <_description>Disable the keyboard layout indicator unconditionally, do not show it even if number of layouts is more than one</_description>
+      <_summary>Never show layout indicator</_summary>
+      <_description>Disable the keyboard layout indicator unconditionally, do not show it even if number of layouts is more than one.</_description>
     </key>
-    <key name="duplicate-leds" type="b">
+    <key name="show-keyboard-leds-indicator" type="b">
       <default>false</default>
-      <_summary>Display keyboard indicators on the panel</_summary>
-      <_description>Display pseudo-leds for keyboards that do not have physical LEDs for CapsLock, NumLock, ScrollLock</_description>
+      <_summary>Display keyboard LEDs on the panel</_summary>
+      <_description>Display pseudo-leds for keyboards that do not have physical LEDs for CapsLock, NumLock, and ScrollLock.</_description>
     </key>
   </schema>
 </schemalist>
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index e38f276..c1255a1 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -44,7 +44,7 @@
 #define SETTINGS_KEYBOARD_DIR "org.gnome.settings-daemon.plugins.keyboard"
 
 #define DISABLE_INDICATOR_KEY "disable-indicator"
-#define DUPLICATE_LEDS_KEY "duplicate-leds"
+#define SHOW_KEYBOARD_LEDS_INDICATOR_KEY "show-keyboard-leds-indicator"
 
 static GsdKeyboardManager *manager = NULL;
 
@@ -171,7 +171,7 @@ apply_desktop_settings (void)
 	   before activating them */
 	gkbd_desktop_config_activate (&current_config);
 
-	show_leds = g_settings_get_boolean (settings_plugin, DUPLICATE_LEDS_KEY);
+	show_leds = g_settings_get_boolean (settings_plugin, SHOW_KEYBOARD_LEDS_INDICATOR_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]