From 432ba0b3ddd83ea6ac3688474a9c3ab1f854550c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 6 Jun 2002 19:28:21 +0000 Subject: Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox 2002-06-06 Jeffrey Stedfast * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox containing the GtkOptionMenu. svn path=/trunk/; revision=17136 --- composer/e-msg-composer-hdrs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 e6caed6184..1db41d6d3d 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -252,6 +252,8 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs) gtk_widget_show (omenu); gtk_widget_show (hbox); + gtk_object_set_data (GTK_OBJECT (hbox), "from_menu", omenu); + return hbox; } @@ -808,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 (hdrs->priv->from.entry); + omenu = GTK_OPTION_MENU (gtk_object_get_data (GTK_OBJECT (hdrs->priv->from.entry), "from_menu")); if (account_name) default_account = -1; -- cgit