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 /composer/evolution-composer.c | |
parent | 34639f458f07c04eac1da2761d4e1c5b15250a46 (diff) | |
download | gsoc2013-evolution-83b2cac161c4b3b93110595cd171d9c806461d56.tar.gz 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
Diffstat (limited to 'composer/evolution-composer.c')
-rw-r--r-- | composer/evolution-composer.c | 13 |
1 files changed, 12 insertions, 1 deletions
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; } |