diff options
author | JP Rosevear <jpr@ximian.com> | 2001-06-20 07:01:33 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-06-20 07:01:33 +0800 |
commit | 477830f7602e726cacf24fdbfb7d4c648b1a8bcb (patch) | |
tree | 2ebe85aea1795e87662799ecb7e1fbe3f0b8cc2e | |
parent | 968af9b95e75fa42c656abd99ab9146d0b3d6cc6 (diff) | |
download | gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar.gz gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar.bz2 gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar.lz gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar.xz gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.tar.zst gsoc2013-evolution-477830f7602e726cacf24fdbfb7d4c648b1a8bcb.zip |
send the message
2001-06-19 JP Rosevear <jpr@ximian.com>
* evolution-composer.c (impl_Composer_send): send the message
* Evolution-Composer.idl: add a "send" method to send a message
without showing the editor
svn path=/trunk/; revision=10309
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/Evolution-Composer.idl | 9 | ||||
-rw-r--r-- | composer/evolution-composer.c | 14 |
3 files changed, 29 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 7fb02bb31b..c3ee1af30c 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2001-06-19 JP Rosevear <jpr@ximian.com> + + * evolution-composer.c (impl_Composer_send): send the message + + * Evolution-Composer.idl: add a "send" method to send a message + without showing the editor + 2001-06-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_construct): Don't define the diff --git a/composer/Evolution-Composer.idl b/composer/Evolution-Composer.idl index 3fcda3873e..3e18c5b5e3 100644 --- a/composer/Evolution-Composer.idl +++ b/composer/Evolution-Composer.idl @@ -83,7 +83,6 @@ module Evolution { in boolean show_inline, in string data); - /** * show: * @@ -91,6 +90,14 @@ module Evolution { * and send the message. **/ void show (); + + + /** + * send: + * + * Send the message without showing the user the composer + **/ + void send (); }; }; }; diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index abca28306b..ad4efd6b7d 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -196,6 +196,19 @@ impl_Composer_show (PortableServer_Servant servant, gtk_widget_show (GTK_WIDGET (composer->composer)); } +static void +impl_Composer_send (PortableServer_Servant servant, + CORBA_Environment *ev) +{ + BonoboObject *bonobo_object; + EvolutionComposer *composer; + + bonobo_object = bonobo_object_from_servant (servant); + composer = EVOLUTION_COMPOSER (bonobo_object); + + send_cb (composer->composer, NULL); +} + POA_GNOME_Evolution_Composer__epv * evolution_composer_get_epv (void) { @@ -207,6 +220,7 @@ evolution_composer_get_epv (void) epv->attachMIME = impl_Composer_attach_MIME; epv->attachData = impl_Composer_attach_data; epv->show = impl_Composer_show; + epv->send = impl_Composer_send; return epv; } |