diff options
author | Miguel de Icaza <miguel@ximian.com> | 2001-01-12 15:09:51 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2001-01-12 15:09:51 +0800 |
commit | 891d37dac8f9a80a8f007c825af2987692d1be63 (patch) | |
tree | a2027d66f0073b2cf00613350d80f166422ea4e6 /composer/evolution-composer.c | |
parent | 5aa11827ce3c662631be7e0fd681394c7f179207 (diff) | |
download | gsoc2013-evolution-891d37dac8f9a80a8f007c825af2987692d1be63.tar.gz gsoc2013-evolution-891d37dac8f9a80a8f007c825af2987692d1be63.tar.zst gsoc2013-evolution-891d37dac8f9a80a8f007c825af2987692d1be63.zip |
Only attach to "changed" if the widget is an EEntry. The HEADER_COMBOBOX
2001-01-12 Miguel de Icaza <miguel@ximian.com>
* e-msg-composer-hdrs.c (add_header): Only attach to "changed" if
the widget is an EEntry. The HEADER_COMBOBOX and the
HEADER_ADDRBOOK are a ComboBox and a remote Bonobo control
respectively.
* evolution-composer.c (get_object): Move getObject functionality
here from e-msg-composer.c
svn path=/trunk/; revision=7441
Diffstat (limited to 'composer/evolution-composer.c')
-rw-r--r-- | composer/evolution-composer.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index 45a6949eb3..80311f3eff 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -258,12 +258,26 @@ get_object (BonoboItemHandler *h, const char *item_name, gboolean only_if_exists gpointer data, CORBA_Environment *ev) { EvolutionComposer *composer = data; + GSList *options, *l; - if (strcmp (item_name, "composer_window") == 0) - return bonobo_object_dup_ref ( - BONOBO_OBJECT (composer->composer)->corba_objref, ev); - - return CORBA_OBJECT_NIL; + options = bonobo_item_option_parse (item_name); + for (l = options; l; l = l->next){ + BonoboItemOption *option = l->data; + + if (strcmp (option->key, "visible")){ + gboolean show = 1; + + if (option->value) + show = atoi (option->value); + + if (show) + gtk_widget_show (GTK_WIDGET (composer->composer)); + else + gtk_widget_hide (GTK_WIDGET (composer->composer)); + } + } + return bonobo_object_dup_ref ( + BONOBO_OBJECT (composer)->corba_objref, ev); } void |