From 5706b15132615bc427f27516bb599a1baa076523 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 5 Jun 2002 21:16:41 +0000 Subject: put option menu to hbox to make space for signatures menu 2002-06-05 Radek Doulik * e-msg-composer-hdrs.c (create_from_optionmenu): put option menu to hbox to make space for signatures menu (e_msg_composer_hdrs_get_from_hbox): new helper function * e-msg-composer.c: moved signatures from menu to option menu next to From: svn path=/trunk/; revision=17126 --- composer/e-msg-composer-hdrs.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'composer/e-msg-composer-hdrs.c') diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 9930ee3b1a..f497f35f85 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -185,7 +185,7 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) { GtkWidget *omenu, *menu, *first = NULL; const GSList *accounts; - GtkWidget *item; + GtkWidget *item, *hbox; int i = 0, history = 0; int default_account; @@ -246,8 +246,13 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) gtk_option_menu_set_history (GTK_OPTION_MENU (omenu), history); gtk_signal_emit_by_name (GTK_OBJECT (first), "activate", hdrs); } - - return omenu; + + hbox = gtk_hbox_new (FALSE, 3); + gtk_box_pack_start_defaults (GTK_BOX (hbox), omenu); + gtk_widget_show (omenu); + gtk_widget_show (hbox); + + return hbox; } static void @@ -1102,3 +1107,12 @@ e_msg_composer_hdrs_get_subject_entry (EMsgComposerHdrs *hdrs) return hdrs->priv->subject.entry; } + +GtkWidget * +e_msg_composer_hdrs_get_from_hbox (EMsgComposerHdrs *hdrs) +{ + g_return_val_if_fail (hdrs != NULL, NULL); + g_return_val_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs), NULL); + + return hdrs->priv->from.entry; +} -- cgit