[gnome-initial-setup] accounts: Only show enterprise when available
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] accounts: Only show enterprise when available
- Date: Tue, 25 Feb 2014 12:07:40 +0000 (UTC)
commit 89723f0e7987624d096040873b992e236f1b7e04
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 25 07:06:12 2014 -0500
accounts: Only show enterprise when available
We were hiding the page when we don't find realmd on the bus,
but the 'Setup Enterprise Login' toggle button was still
visible, not doing anything. Avoid this by binding the
button visibility to the page visibility.
.../pages/account/gis-account-page.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index 6f79c5d..b5e6359 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -187,6 +187,7 @@ gis_account_page_constructed (GObject *object)
g_signal_connect (priv->page_toggle, "toggled", G_CALLBACK (toggle_mode), page);
g_object_bind_property (page, "applying", priv->page_toggle, "sensitive", G_BINDING_INVERT_BOOLEAN);
+ g_object_bind_property (priv->page_enterprise, "visible", priv->page_toggle, "visible", G_BINDING_DEFAULT
| G_BINDING_SYNC_CREATE);
/* force a refresh by setting to an invalid value */
priv->mode = NUM_MODES;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]