2004-10-15 Dan Williams <dcbw@redhat.com>

* panel-applet/NMWirelessApplet.[ch]
		- Fix up corner cases in applet state, making it
			look more responsive.  Change state to "connecting" when
			the user is forcing a device too.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@249 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2004-10-15 20:59:17 +00:00
parent 5b7f4270e6
commit 3b9dafe345
2 changed files with 5 additions and 0 deletions

View File

@@ -534,7 +534,11 @@ static void nmwa_menu_item_activate (GtkMenuItem *item, gpointer user_data)
dev = nmwa_get_device_for_nm_device (applet, tag);
if (dev)
{
applet->applet_state = APPLET_STATE_WIRELESS_CONNECTING;
applet->forcing_device = TRUE;
nmwa_dbus_set_device (applet->connection, dev, net);
}
}

View File

@@ -112,6 +112,7 @@ typedef struct
/* Data model elements */
GMutex *data_mutex;
AppletState applet_state;
gboolean forcing_device;
GSList *device_list;
NetworkDevice *active_device;
char *nm_status;