[gnome-control-center] network: Don't make the options button insensitive
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Don't make the options button insensitive
- Date: Wed, 8 Aug 2012 04:49:02 +0000 (UTC)
commit 61a5c180ecc4acec1d74cb02c573660572cd32e0
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 8 00:16:37 2012 -0400
network: Don't make the options button insensitive
We always want to be able to go there.
panels/network/net-device-wifi.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index da73ef1..e6f283b 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -667,7 +667,6 @@ static void
nm_device_wifi_refresh_ui (NetDeviceWifi *device_wifi)
{
const gchar *str;
- gboolean is_connected;
gboolean is_hotspot;
gchar *str_tmp = NULL;
GtkWidget *widget;
@@ -714,13 +713,6 @@ nm_device_wifi_refresh_ui (NetDeviceWifi *device_wifi)
panel_device_state_to_localized_string (nm_device));
gtk_widget_set_tooltip_text (widget, panel_device_state_reason_to_localized_string (nm_device));
- /* The options button is always enabled for wired connections,
- * and is sensitive for other connection types if the device
- * is currently connected */
- widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder, "button_options"));
- is_connected = find_connection_for_device (device_wifi, nm_device) != NULL;
- gtk_widget_set_sensitive (widget, is_connected);
-
/* device MAC */
str = nm_device_wifi_get_hw_address (NM_DEVICE_WIFI (nm_device));
panel_set_device_widget_details (device_wifi->priv->builder,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]