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



commit eaede120f202f33631bfa65245fb181baf63947b
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 64ba6e8..4dc4aee 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -2059,8 +2059,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]