[gnome-settings-daemon] media-keys: Fix OSD tests to match usage



commit 89e197581b2472a36f44bf6f1d8ea4bc1d3f8996
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Jan 12 00:23:37 2013 +0100

    media-keys: Fix OSD tests to match usage
    
    No level bar for touchpad OSDs, and muted should show an empty level.

 plugins/media-keys/test-media-window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/media-keys/test-media-window.c b/plugins/media-keys/test-media-window.c
index 1fbd273..9b30df7 100644
--- a/plugins/media-keys/test-media-window.c
+++ b/plugins/media-keys/test-media-window.c
@@ -53,6 +53,7 @@ update_state (GtkWidget *window)
                 break;
         case 3:
                 gsd_osd_window_set_volume_muted (GSD_OSD_WINDOW (window), TRUE);
+                gsd_osd_window_set_volume_level (GSD_OSD_WINDOW (window), 0);
                 gsd_osd_window_set_action (GSD_OSD_WINDOW (window),
                                            GSD_OSD_WINDOW_ACTION_VOLUME);
 
@@ -84,14 +85,14 @@ update_state (GtkWidget *window)
         case 7:
                 gsd_osd_window_set_action_custom (GSD_OSD_WINDOW (window),
                                                   "touchpad-disabled-symbolic",
-                                                  TRUE);
+                                                  FALSE);
 
                 gtk_widget_show (window);
                 break;
         case 8:
                 gsd_osd_window_set_action_custom (GSD_OSD_WINDOW (window),
                                                   "input-touchpad-symbolic",
-                                                  TRUE);
+                                                  FALSE);
 
                 gtk_widget_show (window);
                 break;



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