[gnome-control-center] network: Only start the spinner when we can stop it



commit b921ce215f72188e86fa9f58d9a7717cdeec6a9b
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 7 12:37:45 2013 +0200

    network: Only start the spinner when we can stop it
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709555

 panels/network/net-device-wifi.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index fb52264..49a79a8 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1898,8 +1898,6 @@ 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_show (spinner);
-                gtk_spinner_start (GTK_SPINNER (spinner));
                 if (connection != NULL) {
                         gtk_widget_hide (edit);
                         client = net_object_get_client (NET_OBJECT (device_wifi));
@@ -1912,6 +1910,10 @@ ap_activated (GtkListBox *list, GtkListBoxRow *row, NetDeviceWifi *device_wifi)
                         const GByteArray *ssid;
                         gchar *ssid_text;
                         const gchar *object_path;
+
+                        gtk_widget_show (spinner);
+                        gtk_spinner_start (GTK_SPINNER (spinner));
+
                         ssid = nm_access_point_get_ssid (ap);
                         ssid_text = g_markup_escape_text (nm_utils_escape_ssid (ssid->data, ssid->len), -1);
                         object_path = nm_object_get_path (NM_OBJECT (ap));


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