diff options
author | Radek Doulik <rodo@ximian.com> | 2002-06-06 05:16:41 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-06-06 05:16:41 +0800 |
commit | 5706b15132615bc427f27516bb599a1baa076523 (patch) | |
tree | dc16d4062ef830df9049fe4b75b623dd633e94f4 /composer/e-msg-composer-hdrs.c | |
parent | ba793447966329f53c4cf2b14f2bfd32fd6e9de9 (diff) | |
download | gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar.gz gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar.bz2 gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar.lz gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar.xz gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.tar.zst gsoc2013-evolution-5706b15132615bc427f27516bb599a1baa076523.zip |
put option menu to hbox to make space for signatures menu
2002-06-05 Radek Doulik <rodo@ximian.com>
* 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
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 20 |
1 files changed, 17 insertions, 3 deletions
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; +} |