aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-editor.c7
2 files changed, 9 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index acf2e432d4..131e3b4ce6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,12 @@
2007-12-04 David Turner <cillian64@googlemail.com>
+ ** Part of fix for bug #466499
+
+ * em-account-editor.c: (emae_option_toggle):
+ Added support for mnemonics in config options from camel
+
+2007-12-04 David Turner <cillian64@googlemail.com>
+
** Fix for bug #466497
* mail-config.glade: Changed some mnemonics to stop l being used
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a15d6f877a..4e89ad202f 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1900,12 +1900,9 @@ emae_option_toggle(EMAccountEditorService *service, CamelURL *url, const char *t
GtkWidget *w;
/* FIXME: how do we get the default value ever? */
- w = g_object_new(gtk_check_button_get_type(),
- "label", text,
- "use_underline", TRUE,
- "active", camel_url_get_param(url, name) != NULL,
- NULL);
+ w = gtk_check_button_new_with_mnemonic(text);
g_object_set_data((GObject *)w, "option-name", (void *)name);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), camel_url_get_param (url, name) != NULL);
g_signal_connect(w, "toggled", G_CALLBACK(emae_option_toggle_changed), service);
gtk_widget_show(w);