[gnome-settings-daemon] media-keys: Add test for other OSD icons
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Add test for other OSD icons
- Date: Mon, 19 Sep 2011 10:24:09 +0000 (UTC)
commit 8bd36b8ccb9c8eb9e0e4c7f71dbd2e0c94c61c0d
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 19 11:20:03 2011 +0100
media-keys: Add test for other OSD icons
Which we use in addition to the volume and eject ones.
plugins/media-keys/test-media-window.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/plugins/media-keys/test-media-window.c b/plugins/media-keys/test-media-window.c
index a0c80fb..1558d56 100644
--- a/plugins/media-keys/test-media-window.c
+++ b/plugins/media-keys/test-media-window.c
@@ -70,7 +70,7 @@ update_state (GtkWidget *window)
break;
case 5:
gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (window),
- 0);
+ 50);
gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (window),
"display-brightness-symbolic",
TRUE);
@@ -81,16 +81,21 @@ update_state (GtkWidget *window)
gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (window),
50);
gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (window),
- "display-brightness-symbolic",
+ "keyboard-brightness-symbolic",
TRUE);
gtk_widget_show (window);
break;
case 7:
- gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (window),
- 100);
gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (window),
- "display-brightness-symbolic",
+ "touchpad-disabled-symbolic",
+ TRUE);
+
+ gtk_widget_show (window);
+ break;
+ case 8:
+ gsd_media_keys_window_set_action_custom (GSD_MEDIA_KEYS_WINDOW (window),
+ "touchpad-enabled-symbolic",
TRUE);
gtk_widget_show (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]