aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-11-14 05:32:39 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-11-14 05:32:39 +0800
commit5880c00dd2fc254ea85302acd054cd57fede3966 (patch)
tree83980c1d8e170b376401ca032cf34f7e97376e34 /shell
parent1627a081744129fbf8f874c290b9a18138655590 (diff)
downloadgsoc2013-evolution-5880c00dd2fc254ea85302acd054cd57fede3966.tar.gz
gsoc2013-evolution-5880c00dd2fc254ea85302acd054cd57fede3966.tar.zst
gsoc2013-evolution-5880c00dd2fc254ea85302acd054cd57fede3966.zip
New.
* e-shell.c (e_shell_send_receive): New. * Evolution-Component.idl (Component.sendAndReceive): New. * evolution.xml: Add back send/receive command and toolbar button. svn path=/trunk/; revision=23334
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/Evolution-Component.idl5
-rw-r--r--shell/e-shell-window-commands.c16
-rw-r--r--shell/e-shell.c26
-rw-r--r--shell/e-shell.h2
5 files changed, 55 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index a3930814b4..b132cb872a 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2003-11-13 Ettore Perazzoli <ettore@ximian.com>
+ * e-shell.c (e_shell_send_receive): New.
+
+ * Evolution-Component.idl (Component.sendAndReceive): New.
+
+2003-11-13 Ettore Perazzoli <ettore@ximian.com>
+
* e-user-creatable-items-handler.c (ensure_menu_items): Reverse
the list so we get the items in the same order they were given to
us [since we are using g_slist_prepend() to build the list].
diff --git a/shell/Evolution-Component.idl b/shell/Evolution-Component.idl
index 7a915c6bfb..c9c5afaf11 100644
--- a/shell/Evolution-Component.idl
+++ b/shell/Evolution-Component.idl
@@ -59,6 +59,11 @@ module Evolution {
@item_type_name. */
void requestCreateItem (in string item_type_name)
raises (UnknownType);
+
+
+ /*** Send/receive. ***/
+
+ void sendAndReceive ();
};
};
diff --git a/shell/e-shell-window-commands.c b/shell/e-shell-window-commands.c
index b75fc998a4..0bc9b7f12f 100644
--- a/shell/e-shell-window-commands.c
+++ b/shell/e-shell-window-commands.c
@@ -197,6 +197,14 @@ command_work_online (BonoboUIComponent *uih,
e_shell_go_online (e_shell_window_peek_shell (window), window);
}
+static void
+command_send_receive (BonoboUIComponent *uih,
+ EShellWindow *window,
+ const char *path)
+{
+ e_shell_send_receive (e_shell_window_peek_shell (window));
+}
+
/* Tools menu. */
@@ -228,6 +236,12 @@ static BonoboUIVerb file_verbs [] = {
BONOBO_UI_VERB_END
};
+static BonoboUIVerb actions_verbs[] = {
+ BONOBO_UI_VERB ("SendReceive", (BonoboUIVerbFn) command_send_receive),
+
+ BONOBO_UI_VERB_END
+};
+
static BonoboUIVerb tools_verbs[] = {
BONOBO_UI_VERB ("Settings", (BonoboUIVerbFn) command_settings),
BONOBO_UI_VERB ("PilotSettings", (BonoboUIVerbFn) command_pilot_settings),
@@ -244,6 +258,7 @@ static BonoboUIVerb help_verbs [] = {
};
static EPixmap pixmaps [] = {
+ E_PIXMAP ("/commands/SendReceive", "send-receive.xpm"),
E_PIXMAP ("/menu/File/FileImporter", "import.xpm"),
E_PIXMAP ("/menu/File/ToggleOffline", "work_offline.xpm"),
E_PIXMAP ("/menu/Tools/Settings", "settings-16.png"),
@@ -341,6 +356,7 @@ e_shell_window_commands_setup (EShellWindow *shell_window)
shell = e_shell_window_peek_shell (shell_window);
bonobo_ui_component_add_verb_list_with_data (uic, file_verbs, shell_window);
+ bonobo_ui_component_add_verb_list_with_data (uic, actions_verbs, shell_window);
bonobo_ui_component_add_verb_list_with_data (uic, tools_verbs, shell_window);
bonobo_ui_component_add_verb_list_with_data (uic, help_verbs, shell_window);
diff --git a/shell/e-shell.c b/shell/e-shell.c
index e69b04a0a3..9b803efb2a 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -845,6 +845,32 @@ e_shell_go_online (EShell *shell,
void
+e_shell_send_receive (EShell *shell)
+{
+ GSList *component_list;
+ GSList *p;
+
+ g_return_if_fail (E_IS_SHELL (shell));
+
+ component_list = e_component_registry_peek_list (shell->priv->component_registry);
+
+ for (p = component_list; p != NULL; p = p->next) {
+ EComponentInfo *info = p->data;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+
+ GNOME_Evolution_Component_sendAndReceive (info->iface, &ev);
+
+ // Ignore errors, the components can decide to not implement
+ // this interface.
+
+ CORBA_exception_free (&ev);
+ }
+}
+
+
+void
e_shell_show_settings (EShell *shell,
const char *type,
EShellWindow *shell_window)
diff --git a/shell/e-shell.h b/shell/e-shell.h
index 9d75a86baa..84f73f3b1d 100644
--- a/shell/e-shell.h
+++ b/shell/e-shell.h
@@ -120,6 +120,8 @@ void e_shell_go_offline (EShell *shell,
void e_shell_go_online (EShell *shell,
EShellWindow *action_window);
+void e_shell_send_receive (EShell *shell);
+
void e_shell_show_settings (EShell *shell,
const char *type,
EShellWindow *shell_window);
* Update HPN patch to v14 for openssh 4.5p1.ale2006-11-182-4/+4 * - Fix CHROOT patch using chroot() before setusercontext() and add strerror() ...mnag2006-11-101-18/+14 * - Update to 4.5p1mnag2006-11-103-6/+5 * - Update HPN patch. Patch are renamed, the only content differences are two r...mnag2006-10-172-7/+8 * - Add OPTION to enable Kerberos/GSSAPI patch [1]mnag2006-10-083-11/+1850 * - Fix package creation. [1]mnag2006-10-043-4/+9 * - Install ssh_config-dist and sshd_config-dist in OVERWRITE_BASE too.mnag2006-10-022-4/+2 * - Update to 4.4p1.mnag2006-10-0121-448/+467 * Update HPN-12 patch to version 8 (no functional changes,ale2006-08-302-4/+4 * Add optional OpenSC PIN patch which make it possible for OpenSSH to asksimon2006-08-092-0/+137 * - Remove unecessary ?= in PKGNAMESUFFIX [1]mnag2006-07-052-21/+5 * Add support for smart cards.ale2006-06-131-0/+6 * - Fix order in rc.d script. Because of pidfile are empty, reload [2] and rest...mnag2006-02-222-14/+18 * Forget to add HPN patches.mnag2006-02-122-2/+8 * - Update to 4.3p2mnag2006-02-122-10/+4 * - Update to 4.3p1mnag2006-02-088-88/+194 * - Reorganize Makefile in preparation to update to 4.3p1mnag2006-02-082-74/+75 * Add SHA256mnag2005-11-091-0/+1 * Update my emailmnag2005-09-171-1/+1 * - Pass maintainership to submitter, since he sent the last patch.garga2005-09-061-1/+1 * - Update to 4.2p1garga2005-09-025-146/+70 * - Update to 4.1p1pav2005-06-072-5/+5 * - Don't specify --with-ssl-dir when using the system's OpenSSLpav2005-04-121-0/+2 * - Update to 4.0p1ahze2005-03-209-68/+137 * - sshd child process crashes when user with expired password logs in.pav2004-12-191-1/+1 * - drop maintainershipdinoex2004-10-141-1/+1 * - new option WITH_OPENSSH_CHROOTdinoex2004-10-122-24/+62 * - cleanup patchesdinoex2004-10-125-21/+21 * - update to 3.9p1dinoex2004-08-186-63/+46 * - bump PORTEPOCHdinoex2004-04-291-0/+1 * - update to 3.8.1p1dinoex2004-04-292-3/+3 * - force kerberos by option WITH_GSSAPIdinoex2004-04-031-2/+2 * - make PKGNAMESUFFIX more flexibledinoex2004-03-271-4/+6 * - add SIZEdinoex2004-02-261-16/+16 * - update to 3.8p1dinoex2004-02-253-11/+13 * - fix Usagedinoex2003-12-041-2/+2 * - new option WITHOUT_KERBEROSdinoex2003-10-181-1/+1 * - fix build with kerberos5 from base and missing libdesdinoex2003-10-131-16/+6 * - fix spelling of gssapidinoex2003-10-131-2/+2 * - add CONFLICTSdinoex2003-10-121-2/+6 * - GSSAPI patch improved for kerbers5 and hemidaldinoex2003-10-102-0/+23 * - cleanup GSSAPI optiondinoex2003-09-292-7/+0 * - Fix BATCH=yes patch for bento.dinoex2003-09-281-31/+6 * - update to 3.7.1p2dinoex2003-09-2724-1426/+84 * - Security Fix in PAM handlingdinoex2003-09-265-80/+508 * - mark FORBIDDEN until fixed.dinoex2003-09-261-0/+2 * - Security Fix obtained from OpenBSDdinoex2003-09-242-4/+5 * Add Solar Designer's additional fixes to buffer management.nectar2003-09-185-9/+126 * - Securitry Fix revision 2dinoex2003-09-172-40/+111 * Do not record expanded size before attempting to reallocate associatednectar2003-09-162-0/+40 * - use OPENSSLRPATH from bsd.openssl.mkdinoex2003-08-301-1/+2 * - use hook for bsd.openssl.mkdinoex2003-08-281-1/+1 * - Update to gssapi-20030430dinoex2003-05-082-8/+12 * - Update to 3.6.1p2dinoex2003-04-302-2/+2 * - honor any given LDFLAGSdinoex2003-04-161-0/+1 * - Change all USE_OPENSSL_* to WITH_OPENSSL_*dinoex2003-04-131-1/+1 * - use bsd.openssl.mkdinoex2003-04-041-1/+1 * - Update to 3.6.1p1dinoex2003-04-022-3/+2 * - extend regression testsdinoex2003-04-013-1/+31 * - Update to 3.6p1dinoex2003-04-014-33/+21 * - add USE_PERL5_BUILDdinoex2003-03-231-0/+1 * - retire pkg-commentdinoex2003-02-211-1/+0 * - add COMMENTdinoex2003-02-211-0/+1 * - openssh-3.5p1 doesn't log utmp for IPv6 connection correctlydinoex2003-01-022-0/+12 * openssh-gssapi-3.5p1 is marked as brokendinoex2002-11-221-1/+2 * - cleanup of mor patchesdinoex2002-10-266-84/+43 * remove an disfuntional MASTER_SITEdinoex2002-10-211-1/+0 * Update to 3.5p1dinoex2002-10-177-85/+34 * Craete moduli on bento.dinoex2002-09-171-15/+5 * add bugfix from CURRENTdinoex2002-08-072-1/+10 * Fix resolver problem with privilege-separation.dinoex2002-07-272-1/+32 * - add pam_cleanup from CURRENTdinoex2002-07-253-5/+29 * Add bits for regression testsdinoex2002-07-223-1/+26 * - Fix Problem with HAVE_HOST_IN_UTMPdinoex2002-07-163-6/+19 * merge PAM buffer management from current.dinoex2002-07-082-118/+67 * PermitRootLogin no explanation added.dinoex2002-07-051-5/+12 * 'PermitRootLogin no' is the new default for the OpenSSH port.dinoex2002-07-05