diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-05-04 07:03:18 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-05-04 07:03:18 +0800 |
commit | 7cfacb2f84e3189bed138326e788ea09bdb25eb8 (patch) | |
tree | e1665f2aa9e42be1fb00aa2f31ff87f9d7ee5d6a /shell/e-shell-view-menu.c | |
parent | 08e6ede22adccfa0eb798135113b3e74dae0fa8d (diff) | |
download | gsoc2013-evolution-7cfacb2f84e3189bed138326e788ea09bdb25eb8.tar.gz gsoc2013-evolution-7cfacb2f84e3189bed138326e788ea09bdb25eb8.tar.zst gsoc2013-evolution-7cfacb2f84e3189bed138326e788ea09bdb25eb8.zip |
Initial implementation for the "warning, some connections are still
active" dialog.
svn path=/trunk/; revision=9661
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index a84a913051..1c4def05c5 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -418,6 +418,35 @@ command_xml_dump (gpointer dummy, } +static void +command_work_offline (BonoboUIComponent *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + EShell *shell; + + shell_view = E_SHELL_VIEW (data); + shell = e_shell_view_get_shell (shell_view); + + switch (e_shell_get_line_status (shell)) { + case E_SHELL_LINE_STATUS_ONLINE: + g_warning ("Putting the shell offline"); + e_shell_go_offline (shell, shell_view); + break; + case E_SHELL_LINE_STATUS_OFFLINE: + g_warning ("Putting the shell online"); + e_shell_go_online (shell, shell_view); + break; + case E_SHELL_LINE_STATUS_GOING_OFFLINE: + g_warning ("The shell is going off-line already; not doing anything."); + break; + default: + g_assert_not_reached (); + } +} + + /* Unimplemented commands. */ #define DEFINE_UNIMPLEMENTED(func) \ @@ -468,6 +497,8 @@ BonoboUIVerb file_verbs [] = { BONOBO_UI_VERB ("FileClose", command_close), BONOBO_UI_VERB ("FileExit", command_quit), + BONOBO_UI_VERB ("WorkOffline", command_work_offline), + BONOBO_UI_VERB_END }; @@ -485,7 +516,7 @@ static EPixmap pixmaps [] = { E_PIXMAP ("/menu/File/New/Folder", "folder.xpm"), E_PIXMAP ("/menu/File/Folder/Folder", "folder.xpm"), E_PIXMAP ("/menu/File/FileImporter", "import.xpm"), - E_PIXMAP ("/menu/File/WorkOffLine", "work_offline.xpm"), + E_PIXMAP ("/menu/File/WorkOffline", "work_offline.xpm"), E_PIXMAP_END }; |