[gnome-initial-setup/gnome-3-8] account: Only show join enterprise login if we have the capabilities



commit 7bd20a19f3356e7f6869afaf7673ac2332005e0f
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 8043f49..ec28678 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -234,6 +234,8 @@ set_has_enterprise (GisAccountPage *page,
 
   if (!has_enterprise)
     set_mode (page, UM_LOCAL);
+
+  gtk_widget_set_visible (priv->action, has_enterprise);
 }
 
 static void
@@ -1215,7 +1217,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]