[gnome-control-center] network: don't show options button on unmanaged interfaces



commit da75f0f9f5e1d12647a8963f53844c17bf592296
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date:   Sun Jan 27 11:22:49 2013 +0100

    network: don't show options button on unmanaged interfaces
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692624

 panels/network/net-device-simple.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-device-simple.c b/panels/network/net-device-simple.c
index 2ebac02..b42730e 100644
--- a/panels/network/net-device-simple.c
+++ b/panels/network/net-device-simple.c
@@ -119,6 +119,10 @@ nm_device_simple_refresh_ui (NetDeviceSimple *device_simple)
                                 && state != NM_DEVICE_STATE_UNMANAGED);
         update_off_switch_from_device_state (GTK_SWITCH (widget), state, device_simple);
 
+        /* set up the Options button */
+        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_options"));
+        gtk_widget_set_visible (widget, state != NM_DEVICE_STATE_UNMANAGED);
+
         /* set device state, with status and optionally speed */
         widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_status"));
         status = g_string_new (panel_device_state_to_localized_string (nm_device));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]