summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-01-29 16:41:27 -0500
committerRui Matos <tiagomatos@gmail.com>2013-02-19 12:25:53 +0100
commitb47b4afb831e532aa8922a5be56704a5b2d255e0 (patch)
treec57d43d1411b8329eca22bf87825dcd0c322853d
parent8cc06f8413cc90c964daf68ba4654ba2199e198e (diff)
downloadgnome-control-center-b47b4afb831e532aa8922a5be56704a5b2d255e0.tar.gz
region: Show a Login Screen button when multi-user
The button doesn't do anything yet.
-rw-r--r--panels/region/cc-region-panel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 7b29dfeea..54b98fc2a 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 *