diff options
author | Radek Doulik <rodo@ximian.com> | 2002-06-11 05:26:18 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-06-11 05:26:18 +0800 |
commit | 6e1b4aa52b51d584195ddf3d4b8f259ecefcc7e6 (patch) | |
tree | 92d62c2fdfae73eeb09382a7c852176f9d8c163d /composer/e-msg-composer-hdrs.c | |
parent | 524e3509c4a17958387308b3674548f7166610d6 (diff) | |
download | gsoc2013-evolution-6e1b4aa52b51d584195ddf3d4b8f259ecefcc7e6.tar.gz gsoc2013-evolution-6e1b4aa52b51d584195ddf3d4b8f259ecefcc7e6.tar.zst gsoc2013-evolution-6e1b4aa52b51d584195ddf3d4b8f259ecefcc7e6.zip |
added "Set as default" menu item
2002-06-10 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (signature_cb): added "Set as default" menu
item
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_from_omenu): new
method
(e_msg_composer_hdrs_set_from_account): use
e_msg_composer_hdrs_get_from_omenu
svn path=/trunk/; revision=17160
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 1db41d6d3d..a39fd806c6 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -810,7 +810,7 @@ e_msg_composer_hdrs_set_from_account (EMsgComposerHdrs *hdrs, g_return_if_fail (hdrs != NULL); g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs)); - omenu = GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (hdrs->priv->from.entry), "from_menu")); + omenu = GTK_OPTION_MENU (e_msg_composer_hdrs_get_from_omenu (hdrs)); if (account_name) default_account = -1; @@ -1124,3 +1124,12 @@ e_msg_composer_hdrs_get_from_hbox (EMsgComposerHdrs *hdrs) return hdrs->priv->from.entry; } + +GtkWidget * +e_msg_composer_hdrs_get_from_omenu (EMsgComposerHdrs *hdrs) +{ + g_return_val_if_fail (hdrs != NULL, NULL); + g_return_val_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs), NULL); + + return GTK_WIDGET (gtk_object_get_data (GTK_OBJECT (hdrs->priv->from.entry), "from_menu")); +} |