From ebb2e9e2b9c836709422f0dddb908e374a88cdc3 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 4 Dec 2007 13:05:55 +0000 Subject: ** Part of fix for bug #466499 2007-12-04 David Turner ** Part of fix for bug #466499 * em-account-editor.c: (emae_option_toggle): Added support for mnemonics in config options from camel svn path=/trunk/; revision=34645 --- mail/ChangeLog | 7 +++++++ mail/em-account-editor.c | 7 ++----- 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,3 +1,10 @@ +2007-12-04 David Turner + + ** 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 ** Fix for bug #466497 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); -- cgit v1.2.3