[gnome-control-center] region: Show a Login Screen button when multi-user



commit b47b4afb831e532aa8922a5be56704a5b2d255e0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 29 16:41:27 2013 -0500

    region: Show a Login Screen button when multi-user
    
    The button doesn't do anything yet.

 panels/region/cc-region-panel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 7b29dfe..54b98fc 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -146,7 +146,10 @@ cc_region_panel_constructed (GObject *object)
 
         cc_shell_embed_widget_in_header (cc_panel_get_shell (CC_PANEL (object)),
                                          priv->login_button);
-        gtk_widget_show (priv->login_button);
+
+        g_object_bind_property (priv->user_manager, "has-multiple-users",
+                                priv->login_button, "visible",
+                                G_BINDING_SYNC_CREATE);
 }
 
 static const char *


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