[gnome-initial-setup] account: Only show join enterprise login if we have the capabilities
- From: Michael Wood <mwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] account: Only show join enterprise login if we have the capabilities
- Date: Fri, 21 Jun 2013 10:00:12 +0000 (UTC)
commit 6f4fc76ac35da9661f5833cb668dc706917af683
Author: Michael Wood <michael g wood intel com>
Date: Mon Jun 17 19:30:43 2013 +0100
account: Only show join enterprise login if we have the capabilities
Only show this widget if we have realmd available.
https://bugzilla.gnome.org/show_bug.cgi?id=702501
.../pages/account/gis-account-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index ae95f59..1fdfaf9 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -230,6 +230,8 @@ set_has_enterprise (GisAccountPage *page,
if (!has_enterprise)
set_mode (page, UM_LOCAL);
+
+ gtk_widget_set_visible (priv->action, has_enterprise);
}
static void
@@ -1197,7 +1199,6 @@ gis_account_page_constructed (GObject *object)
priv->action = gtk_toggle_button_new_with_mnemonic ("_Use Enterprise Login");
g_signal_connect (priv->action, "toggled", G_CALLBACK (toggle_mode), page);
g_object_bind_property (page, "applying", priv->action, "sensitive", G_BINDING_INVERT_BOOLEAN);
- gtk_widget_show (priv->action);
g_object_ref_sink (priv->action);
/* force a refresh by setting to an invalid value */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]