From cfe3be08ff7f356bd5feedfdcfc63838f5fdd712 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 24 Feb 2009 23:46:11 +0000 Subject: ** Fixes bug #572962 2009-02-24 Matthew Barnes ** Fixes bug #572962 * e-shell-window.c (setup_nm_support): Pass e_shell_dbus_initialise() the right type of object, and fix the incorrect function declaration. * e-shell-nm.c (e_shell_network_monitor): Go offline when we see NM_STATE_ASLEEP from NetworkManager. svn path=/trunk/; revision=37320 --- shell/e-shell-nm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/e-shell-nm.c') diff --git a/shell/e-shell-nm.c b/shell/e-shell-nm.c index e1d962fe89..5162aa5fea 100644 --- a/shell/e-shell-nm.c +++ b/shell/e-shell-nm.c @@ -91,7 +91,7 @@ e_shell_network_monitor (DBusConnection *connection G_GNUC_UNUSED, line_status = e_shell_get_line_status (shell); - if (line_status == E_SHELL_LINE_STATUS_ONLINE && state == NM_STATE_DISCONNECTED) { + if (line_status == E_SHELL_LINE_STATUS_ONLINE && (state == NM_STATE_ASLEEP || state == NM_STATE_DISCONNECTED)) { shell_state = GNOME_Evolution_FORCED_OFFLINE; e_shell_set_line_status (shell, shell_state); } else if (line_status == E_SHELL_LINE_STATUS_FORCED_OFFLINE && state == NM_STATE_CONNECTED) { -- cgit v1.2.3