diff options
-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; } |