diff options
author | Shreyas Srinivasan <sshreyas@novell.com> | 2005-12-22 10:12:34 +0800 |
---|---|---|
committer | Shreyas Srinivasan <shres@src.gnome.org> | 2005-12-22 10:12:34 +0800 |
commit | 87a09855fa42b43e11769b39c89336660f3467e7 (patch) | |
tree | 8e2880c7b49f68d3e2c4b54101e5731f1a64bab6 /shell/e-shell-window.c | |
parent | 3de1a0bf0ef4a1db6664cb51bfc33eeba0e56c9e (diff) | |
download | gsoc2013-evolution-87a09855fa42b43e11769b39c89336660f3467e7.tar.gz gsoc2013-evolution-87a09855fa42b43e11769b39c89336660f3467e7.tar.zst gsoc2013-evolution-87a09855fa42b43e11769b39c89336660f3467e7.zip |
Evolution is now Network Aware, the day of complete awareness beckons, The
2005-12-22 Shreyas Srinivasan <sshreyas@novell.com>
* Evolution is now Network Aware, the day of complete
awareness beckons, The machines are taking over...
* Network Manager support for evolution
svn path=/trunk/; revision=30926
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index a0f70c7ccf..af9ece83de 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -449,10 +449,10 @@ offline_toggle_clicked_callback (GtkButton *button, switch (e_shell_get_line_status (priv->shell)) { case E_SHELL_LINE_STATUS_ONLINE: - e_shell_go_offline (priv->shell, window); + e_shell_go_offline (priv->shell, window, GNOME_Evolution_USER_OFFLINE); break; case E_SHELL_LINE_STATUS_OFFLINE: - e_shell_go_online (priv->shell, window); + e_shell_go_online (priv->shell, window, GNOME_Evolution_USER_ONLINE); break; default: g_assert_not_reached (); @@ -583,6 +583,16 @@ setup_statusbar_notebook (EShellWindow *window) } static void +setup_nm_support (EShellWindow *window) +{ + #ifdef NM_SUPPORT_GLIB + e_shell_nm_glib_initialise (window); + #elif NM_SUPPORT + e_shell_dbus_initialise (window); + #endif +} + +static void setup_status_bar (EShellWindow *window) { EShellWindowPrivate *priv; @@ -594,6 +604,9 @@ setup_status_bar (EShellWindow *window) if(gconf_client_get_bool (gconf_client_get_default(),"/apps/evolution/shell/view_defaults/statusbar_visible",NULL)) gtk_widget_show (priv->status_bar); + /* setup dbus interface here*/ + setup_nm_support (window); + setup_offline_toggle (window); setup_menu_hint_label (window); setup_statusbar_notebook (window); |