aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-preferences.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-30 06:29:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-30 06:29:15 +0800
commitc280ce21b80b39dbbc40bd91a9f97335190955c1 (patch)
treed43fc40ff0c15d0353de067232208f9deabda532 /mail/mail-preferences.c
parenta455db74f5f8f9549ad749e9f053ed2473c58809 (diff)
downloadgsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar.gz
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar.bz2
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar.lz
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar.xz
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.tar.zst
gsoc2013-evolution-c280ce21b80b39dbbc40bd91a9f97335190955c1.zip
Same here.
2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Same here. * mail-preferences.c (mail_preferences_construct): Do some gtk hackery action so we can detect if a option menu has changed. svn path=/trunk/; revision=16290
Diffstat (limited to 'mail/mail-preferences.c')
-rw-r--r--mail/mail-preferences.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/mail/mail-preferences.c b/mail/mail-preferences.c
index 02096798a4..6a964c57ef 100644
--- a/mail/mail-preferences.c
+++ b/mail/mail-preferences.c
@@ -157,6 +157,23 @@ menu_changed (GtkWidget *widget, gpointer user_data)
}
static void
+option_menu_connect (GtkOptionMenu *omenu, gpointer user_data)
+{
+ GtkWidget *menu, *item;
+ GList *items;
+
+ menu = gtk_option_menu_get_menu (omenu);
+
+ items = GTK_MENU_SHELL (menu)->children;
+ while (items) {
+ item = items->data;
+ gtk_signal_connect (GTK_OBJECT (item), "activate",
+ menu_changed, user_data);
+ items = items->next;
+ }
+}
+
+static void
mail_preferences_construct (MailPreferences *prefs)
{
GtkWidget *toplevel, *menu;
@@ -191,8 +208,7 @@ mail_preferences_construct (MailPreferences *prefs)
prefs->charset = GTK_OPTION_MENU (glade_xml_get_widget (gui, "omenuCharset"));
menu = e_charset_picker_new (mail_config_get_default_charset ());
gtk_option_menu_set_menu (prefs->charset, GTK_WIDGET (menu));
- gtk_signal_connect (GTK_OBJECT (prefs->charset), "clicked",
- menu_changed, prefs);
+ option_menu_connect (prefs->charset, prefs);
prefs->citation_highlight = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkHighlightCitations"));
gtk_toggle_button_set_active (prefs->citation_highlight, mail_config_get_citation_highlight ());