From eb23edd391e59e62a149446d0b0e8b1c345f1227 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 9 Aug 2000 22:19:41 +0000 Subject: Modified to allow dropdown entry-boxes as well (for headers like From:) 2000-08-09 Jeffrey Stedfast * e-msg-composer-hdrs.c (add_header): Modified to allow dropdown entry-boxes as well (for headers like From:) (setup_headers): Modified to use the correct enum type. (create_dropdown_entry): New convenience function to add a drop-down combo box and fill it in with identities (init): Set from_entry to NULL (e_msg_composer_hdrs_get_from): New convenience function to get the text in the From widget in the composer (e_msg_composer_hdrs_set_from): New convenience function to set the From header in the composer svn path=/trunk/; revision=4673 --- composer/e-msg-composer.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 2793535b51..bcb6aea723 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1181,26 +1181,26 @@ e_msg_composer_construct (EMsgComposer *composer) { GtkWidget *vbox; BonoboObject *editor_server; - + g_return_if_fail (gtk_main_level () > 0); - + gtk_window_set_default_size (GTK_WINDOW (composer), DEFAULT_WIDTH, DEFAULT_HEIGHT); - + gnome_app_construct (GNOME_APP (composer), "e-msg-composer", _("Compose a message")); - + composer->uih = bonobo_ui_handler_new (); bonobo_ui_handler_set_app (composer->uih, GNOME_APP (composer)); - + vbox = gtk_vbox_new (FALSE, 0); - + composer->hdrs = e_msg_composer_hdrs_new (); gtk_box_pack_start (GTK_BOX (vbox), composer->hdrs, FALSE, TRUE, 0); gtk_widget_show (composer->hdrs); - + /* Editor component. */ - + create_menubar (composer); create_toolbar (composer); composer->editor = create_editor (composer); @@ -1211,7 +1211,7 @@ e_msg_composer_construct (EMsgComposer *composer) = bonobo_object_query_interface (editor_server, "IDL:Bonobo/PersistFile:1.0"); 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); -- cgit