From df452e35892c7d4195e0480c5ac1ed398f0f09f0 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Mon, 11 Jun 2001 21:56:05 +0000 Subject: Rearranged gtk_widget_show()s a bit to fix Bug#3204. The composer is now 2001-06-11 Jon Trowbridge * e-msg-composer.c (e_msg_composer_construct): Rearranged gtk_widget_show()s a bit to fix Bug#3204. The composer is now (like the rest of Evo) properly network transparent. svn path=/trunk/; revision=10191 --- composer/e-msg-composer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 1248d002b5..a785be5c2a 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1441,7 +1441,7 @@ setup_ui (EMsgComposer *composer) composer->uic = bonobo_ui_component_new ("evolution-message-composer"); bonobo_ui_component_set_container ( - composer->uic, bonobo_object_corba_objref (BONOBO_OBJECT (container))); + composer->uic, bonobo_object_corba_objref (BONOBO_OBJECT (container))); bonobo_ui_component_add_verb_list_with_data ( composer->uic, verbs, composer); @@ -1968,9 +1968,7 @@ e_msg_composer_construct (EMsgComposer *composer) composer->persist_stream_interface = bonobo_object_query_interface (editor_server, "IDL:Bonobo/PersistStream:1.0"); - gtk_widget_show (composer->editor); gtk_box_pack_start (GTK_BOX (vbox), composer->editor, TRUE, TRUE, 0); - gtk_widget_show (composer->editor); /* Attachment editor, wrapped into an EScrollFrame. We don't show it for now. */ @@ -1994,6 +1992,11 @@ e_msg_composer_construct (EMsgComposer *composer) bonobo_window_set_contents (BONOBO_WINDOW (composer), vbox); gtk_widget_show (vbox); + + /* If we show this widget earlier, we lose network transparency. i.e. the + component appears on the machine evo is running on, ignoring any DISPLAY + variable. */ + gtk_widget_show (composer->editor); e_msg_composer_show_attachments (composer, FALSE); -- cgit v1.2.3