aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
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);