diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/evolution-composer.c | 13 | ||||
-rw-r--r-- | composer/evolution-composer.h | 3 |
3 files changed, 21 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 15f7c64b50..14a48e7fbe 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2000-10-25 Dan Winship <danw@helixcode.com> + + * evolution-composer.c (init): Attach send/postpone signal + handlers to the EMsgComposer. + (evolution_composer_factory_init): Take send/postpone signal + handlers as arguments. + 2000-10-23 Dan Winship <danw@helixcode.com> * e-msg-composer.c, e-msg-composer-attachment-bar.c: add some diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index 999731cb96..f39482336c 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -33,6 +33,9 @@ #define PARENT_TYPE BONOBO_OBJECT_TYPE static BonoboObjectClass *parent_class = NULL; +static void (*send_cb) (EMsgComposer *, gpointer); +static void (*postpone_cb) (EMsgComposer *, gpointer); + /* CORBA interface implementation. */ static POA_Evolution_Composer__vepv Composer_vepv; @@ -237,6 +240,10 @@ static void init (EvolutionComposer *composer) { composer->composer = e_msg_composer_new (); + gtk_signal_connect (GTK_OBJECT (composer->composer), "send", + GTK_SIGNAL_FUNC (send_cb), NULL); + gtk_signal_connect (GTK_OBJECT (composer->composer), "postpone", + GTK_SIGNAL_FUNC (postpone_cb), NULL); } @@ -291,7 +298,8 @@ factory_fn (BonoboGenericFactory *factory, void *closure) } void -evolution_composer_factory_init (void) +evolution_composer_factory_init (void (*send) (EMsgComposer *, gpointer), + void (*postpone) (EMsgComposer *, gpointer)) { if (bonobo_generic_factory_new (COMPOSER_FACTORY_ID, factory_fn, NULL) == NULL) { @@ -299,4 +307,7 @@ evolution_composer_factory_init (void) _("Cannot initialize Evolution's composer.")); exit (1); } + + send_cb = send; + postpone_cb = postpone; } diff --git a/composer/evolution-composer.h b/composer/evolution-composer.h index fe6deb6eb0..6f248dae22 100644 --- a/composer/evolution-composer.h +++ b/composer/evolution-composer.h @@ -60,7 +60,8 @@ void evolution_composer_construct (EvolutionComposer *, Evolution_Composer); EvolutionComposer *evolution_composer_new (void); -void evolution_composer_factory_init (void); +void evolution_composer_factory_init (void (*send) (EMsgComposer *, gpointer), + void (*postpone) (EMsgComposer *, gpointer)); #ifdef __cplusplus } |