diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-01-29 16:41:27 -0500 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2013-02-19 12:25:53 +0100 |
commit | b47b4afb831e532aa8922a5be56704a5b2d255e0 (patch) | |
tree | c57d43d1411b8329eca22bf87825dcd0c322853d | |
parent | 8cc06f8413cc90c964daf68ba4654ba2199e198e (diff) | |
download | gnome-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.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 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 * |