diff options
author | Dan Winship <danw@src.gnome.org> | 2000-10-26 06:43:42 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-10-26 06:43:42 +0800 |
commit | 83b2cac161c4b3b93110595cd171d9c806461d56 (patch) | |
tree | 6e323f19780001fc6160587129c96fc72bc81ba1 | |
parent | 34639f458f07c04eac1da2761d4e1c5b15250a46 (diff) | |
download | gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.gz gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.bz2 gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.lz gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.xz gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.zst gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.zip |
Attach send/postpone signal handlers to the EMsgComposer.
* evolution-composer.c (init): Attach send/postpone signal
handlers to the EMsgComposer.
(evolution_composer_factory_init): Take send/postpone signal
handlers as arguments.
svn path=/trunk/; revision=6184
-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 } |