aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorDavid Turner <cillian64@googlemail.com>2007-12-04 21:05:55 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-04 21:05:55 +0800
commitebb2e9e2b9c836709422f0dddb908e374a88cdc3 (patch)
tree67107fba84f62ed5de64ffc930131e264dc4106b /mail/em-account-editor.c
parent99acfbba35edd7de5a3d5060a567bec782281bc2 (diff)
downloadgsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar.gz
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar.bz2
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar.lz
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar.xz
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.tar.zst
gsoc2013-evolution-ebb2e9e2b9c836709422f0dddb908e374a88cdc3.zip
** Part of fix for bug #466499
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 svn path=/trunk/; revision=34645
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c7
1 files changed, 2 insertions, 5 deletions
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);