[gnome-control-center/wip/region-panel] region: Show a Login Screen button when multi-user
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/region-panel] region: Show a Login Screen button when multi-user
- Date: Wed, 30 Jan 2013 00:11:35 +0000 (UTC)
commit dcdf4a0fd9a31117710846249304cbae1550711e
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]