[gnome-settings-daemon] keyboard: Set names for the lock indicator icons



commit c2b5e2702949cac7217e21a2d86861a9d4bff5f9
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 28 01:29:14 2011 +0000

    keyboard: Set names for the lock indicator icons

 plugins/keyboard/gsd-keyboard-xkb.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index de93460..c24b91e 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -86,6 +86,12 @@ static const gchar *indicator_off_icon_names[] = {
 	"kbd-capslock-off"
 };
 
+static const gchar *indicator_icon_names[] = {
+	"kbd-scrolllock",
+	"kbd-numlock",
+	"kbd-capslock"
+};
+
 static void
 activation_error (void)
 {
@@ -596,6 +602,7 @@ gsd_keyboard_xkb_init (GsdKeyboardManager * kbd_manager)
 		indicator_icons[i] =
 		    gtk_status_icon_new_from_icon_name
 		    (indicator_off_icon_names[i]);
+		gtk_status_icon_set_name (indicator_icons[i], indicator_icon_names[i]);
 	}
 
 	gsd_keyboard_update_indicator_icons ();



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