[gdm/multi-stack: 31/46] Don't show unimportant images on plugin buttons



commit 3192c3d4d518ed6996989982f6730d6eab93a4d6
Author: Ray Strode <rstrode redhat com>
Date:   Wed Oct 28 13:57:53 2009 -0400

    Don't show unimportant images on plugin buttons

 gui/simple-greeter/gdm-greeter-login-window.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 5bd3019..e185efb 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -1988,8 +1988,14 @@ on_button_action_icon_name_changed (GtkWidget *button)
 
         action = gtk_widget_get_action (button);
 
-        image = gtk_action_create_icon (GTK_ACTION (action), GTK_ICON_SIZE_BUTTON);
+        if (gtk_action_get_is_important (action)) {
+                image = gtk_action_create_icon (GTK_ACTION (action), GTK_ICON_SIZE_BUTTON);
+        } else {
+                image = NULL;
+        }
+
         gtk_button_set_image (GTK_BUTTON (button), image);
+
 }
 
 static void



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