[gnome-control-center/gnome-3-8] network: Only start the spinner when we can stop it
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] network: Only start the spinner when we can stop it
- Date: Mon, 7 Oct 2013 16:36:39 +0000 (UTC)
commit 23bf28d5c7f9d389e51171a95c3dc80e8cd2a076
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 ab0419b..1ccc026 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1901,8 +1901,6 @@ ap_activated (EggListBox *list, GtkWidget *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));
@@ -1915,6 +1913,10 @@ ap_activated (EggListBox *list, GtkWidget *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]