[gnome-control-center] network: Fix run-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix run-time warning
- Date: Mon, 7 Oct 2013 14:51:13 +0000 (UTC)
commit ce8c2eb6f6f69e1c4c2e441e815276656f08a205
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 7 12:22:57 2013 +0200
network: Fix run-time warning
The "edit" widget is only set as data when there is a connection
(in make_row) so only hide it when there is a connection.
https://bugzilla.gnome.org/show_bug.cgi?id=709555
panels/network/net-device-wifi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 005cda6..241211e 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1900,10 +1900,10 @@ ap_activated (GtkListBox *list, GtkListBoxRow *row, NetDeviceWifi *device_wifi)
edit = GTK_WIDGET (g_object_get_data (G_OBJECT (row), "edit"));
if (ap != NULL) {
- gtk_widget_hide (edit);
gtk_widget_show (spinner);
gtk_spinner_start (GTK_SPINNER (spinner));
if (connection != NULL) {
+ gtk_widget_hide (edit);
client = net_object_get_client (NET_OBJECT (device_wifi));
nm_device = net_device_get_nm_device (NET_DEVICE (device_wifi));
nm_client_activate_connection (client,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]