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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user