NetworkManager/gnome/applet
Dan Williams 9fa4a67aa5 2006-10-24 Dan Williams <dcbw@redhat.com>
Reduce the number of times the Gnome applet wakes up, especially when
	it's doing absolutely nothing and is hidden.  Initial patch by
	Chris Aillon.

	* gnome/applet/applet-dbus.c
		- (nma_dbus_filter): when NM isn't around, or when it goes away,
			kill the redraw timeout.  When NM starts up, start the redraw
			timeout.  Also, if we get kicked off the bus for some reason,
			start the reconnection timeout if one's not already running.
		- (nma_dbus_init): better handling of error conditions, don't leak
			a half-initialized dbus connection
		- (nma_dbus_connection_watcher): consolidate places we reinitialize
			the applet's data, just call nm_dbus_init_helper()
		- (nma_start_dbus_connection_watch): new function, starts a periodic
			timeout that calls nma_dbus_connection_watcher()
		- (nma_dbus_init_helper): if we get a successful connection, kill the
			reconnection timeout, and don't start the reconnection timeout
			unconditionally anymore

	* gnome/applet/applet-dbus.h
		- Expose nma_start_dbus_connection_watch()

	* gnome/applet/applet.c
		- (nma_update_state): no longer static, called from applet-dbus.c for
			immediate UI updates on certain events
		- (nma_set_running): new function; take over setting applet->running,
			when not running (ie, NM is not active), don't activate the redraw
			timeout because we're not showing the applet anyway.  When we are
			running (ie, NM is active), and only when we're running, start the
			redraw timeout.
		- (nma_destroy): kill the redraw timeout by setting 'not running', and
			kill any reconnection timeout
		- (nma_get_instance): move one-off dbus initialization code here since
			nm_dbus_init_helper() gets called more than once, possibly by the
			reconnection timeout function too.  And, when we start up, if we
			can't get a connection to the bus, start the reconnection timeout.
			But don't start the redraw timeout yet, only do that when we get
			NM's state and find out if it's running or not.

	* gnome/applet/applet.h
		- Add the reconnection GSource ID
		- Add prototypes for nma_set_running() and the no-longer-static
			nma_update_state()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2084 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-10-25 03:57:41 +00:00
..
icons 2005-10-06 Christopher Aillon <caillon@redhat.com> 2005-10-06 20:37:13 +00:00
.cvsignore Add .cvsignore files 2005-04-28 01:44:31 +00:00
applet-compat.c 2006-05-01 Robert Love <rml@novell.com> 2006-05-01 19:10:57 +00:00
applet-compat.h 2005-12-22 Dan Williams <dcbw@redhat.com> 2005-12-23 01:26:17 +00:00
applet-dbus-devices.c 2006-08-06 Dan Williams <dcbw@redhat.com> 2006-08-07 03:06:11 +00:00
applet-dbus-devices.h 2006-06-08 Robert Love <rml@novell.com> 2006-06-08 21:01:37 +00:00
applet-dbus-info.c 2006-06-15 Robert Love <rml@novell.com> 2006-06-15 16:43:51 +00:00
applet-dbus-info.h 2005-12-17 Dan Williams <dcbw@redhat.com> 2005-12-17 21:10:37 +00:00
applet-dbus-vpn.c 2006-08-06 Dan Williams <dcbw@redhat.com> 2006-08-07 03:06:11 +00:00
applet-dbus-vpn.h 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
applet-dbus.c 2006-10-24 Dan Williams <dcbw@redhat.com> 2006-10-25 03:57:41 +00:00
applet-dbus.h 2006-10-24 Dan Williams <dcbw@redhat.com> 2006-10-25 03:57:41 +00:00
applet-notifications.c 2006-03-24 Christopher Aillon <caillon@redhat.com> 2006-03-24 14:55:40 +00:00
applet-notifications.h Fix compile error in notification code, wasn't including config.h early enough 2006-03-05 19:50:51 +00:00
applet.c 2006-10-24 Dan Williams <dcbw@redhat.com> 2006-10-25 03:57:41 +00:00
applet.glade 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
applet.h 2006-10-24 Dan Williams <dcbw@redhat.com> 2006-10-25 03:57:41 +00:00
eggtrayicon.c 2006-05-24 Robert Love <rml@novell.com> 2006-05-24 15:53:07 +00:00
eggtrayicon.h 2005-09-07 Rodrigo Moya <rodrigo@novell.com> 2005-09-07 21:41:00 +00:00
gconf-helpers.c 2006-06-07 Robert Love <rml@novell.com> 2006-06-07 17:35:33 +00:00
gconf-helpers.h 2005-12-16 Dan Williams <dcbw@redhat.com> 2005-12-16 20:58:39 +00:00
keyring.png 2005-04-27 Dan Williams <dcbw@redhat.com> 2005-04-27 18:05:16 +00:00
main.c 2006-08-01 Robert Love <rml@novell.com> 2006-08-01 22:04:52 +00:00
Makefile.am 2006-10-11 Tambet Ingo <tambet@ximian.com> 2006-10-11 08:07:52 +00:00
menu-items.c 2006-05-17 Robert Love <rml@novell.com> 2006-05-17 20:04:50 +00:00
menu-items.h 2006-05-17 Robert Love <rml@novell.com> 2006-05-17 20:04:50 +00:00
nm-applet.conf Update pending call limits on applet & NM 2006-09-21 00:39:36 +00:00
nm-device.c 2006-05-25 Robert Love <rml@novell.com> 2006-05-25 20:18:02 +00:00
nm-device.h 2006-05-25 Robert Love <rml@novell.com> 2006-05-25 20:18:02 +00:00
nm-gconf-wso-leap.c 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
nm-gconf-wso-leap.h 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
nm-gconf-wso-private.h 2005-12-16 Dan Williams <dcbw@redhat.com> 2005-12-16 20:58:39 +00:00
nm-gconf-wso-wep.c 2006-01-26 Robert Love <rml@novell.com> 2006-01-26 21:08:44 +00:00
nm-gconf-wso-wep.h Random code format changes 2005-12-22 19:54:25 +00:00
nm-gconf-wso-wpa-eap.c 2006-06-15 Robert Love <rml@novell.com> 2006-06-19 17:43:18 +00:00
nm-gconf-wso-wpa-eap.h [ Add new files; missing from previous commit. ] 2006-02-26 02:24:46 +00:00
nm-gconf-wso-wpa-psk.c Yah, so, we don't want those dbus_free() calls. 2006-02-28 20:47:44 +00:00
nm-gconf-wso-wpa-psk.h 2005-12-16 Dan Williams <dcbw@redhat.com> 2005-12-16 20:58:39 +00:00
nm-gconf-wso.c 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
nm-gconf-wso.h 2006-01-26 Robert Love <rml@novell.com> 2006-01-26 21:08:44 +00:00
other-network-dialog.c 2006-06-08 Robert Love <rml@novell.com> 2006-06-08 21:01:37 +00:00
other-network-dialog.h 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
passphrase-dialog.c 2006-05-24 Robert Love <rml@novell.com> 2006-05-24 15:53:07 +00:00
passphrase-dialog.h 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
vpn-connection.c 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
vpn-connection.h 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
vpn-password-dialog.c 2006-05-24 Robert Love <rml@novell.com> 2006-05-24 15:53:07 +00:00
vpn-password-dialog.h 2006-02-27 Dan Williams <dcbw@redhat.com> 2006-02-27 06:26:31 +00:00
wireless-network.c 2006-05-17 Robert Love <rml@novell.com> 2006-05-17 20:04:50 +00:00
wireless-network.h 2006-05-17 Robert Love <rml@novell.com> 2006-05-17 20:04:50 +00:00
wireless-security-manager.c 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
wireless-security-manager.h 2006-01-27 Robert Love <rml@novell.com> 2006-01-30 17:28:22 +00:00
wireless-security-option.c Don't hardcode the zero. The key type is NM_AUTH_TYPE_WPA_PSK_AUTO. 2006-03-22 21:26:58 +00:00
wireless-security-option.h 2006-01-11 Dan Williams <dcbw@redhat.com> 2006-01-11 20:46:26 +00:00
wso-leap.c 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
wso-leap.h 2006-07-13 Dan Williams <dcbw@redhat.com> 2006-07-13 17:03:31 +00:00
wso-none.c 2006-01-06 Robert Love <rml@novell.com> 2006-01-06 20:12:31 +00:00
wso-none.h 2005-12-11 Dan Williams <dcbw@redhat.com> 2005-12-12 04:28:26 +00:00
wso-private.h 2006-03-22 Robert Love <rml@novell.com> 2006-03-22 19:52:41 +00:00
wso-wep-ascii.c 2006-03-15 Robert Love <rml@novell.com> 2006-03-15 20:27:11 +00:00
wso-wep-ascii.h 2005-12-11 Dan Williams <dcbw@redhat.com> 2005-12-12 04:28:26 +00:00
wso-wep-hex.c Hex, not hex, young cheetah. 2006-03-15 20:34:13 +00:00
wso-wep-hex.h 2005-12-11 Dan Williams <dcbw@redhat.com> 2005-12-12 04:28:26 +00:00
wso-wep-passphrase.c 2006-03-15 Robert Love <rml@novell.com> 2006-03-15 20:27:11 +00:00
wso-wep-passphrase.h 2005-12-11 Dan Williams <dcbw@redhat.com> 2005-12-12 04:28:26 +00:00
wso-wpa-eap.c 2006-03-22 Robert Love <rml@novell.com> 2006-03-22 19:52:41 +00:00
wso-wpa-eap.h [ Add new files; missing from previous commit. ] 2006-02-26 02:24:46 +00:00
wso-wpa-psk.c 2006-03-22 Robert Love <rml@novell.com> 2006-03-22 19:52:41 +00:00
wso-wpa-psk.h 2006-02-25 Robert Love <rml@novell.com> 2006-02-26 02:16:53 +00:00