From 77a7dc2b9f7824cfa5ce8fd665f93035d4782799 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Nov 2010 14:02:29 +0100 Subject: Set checkspin label mnemonic widget in account editor --- mail/em-account-editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 13468e87ac..d1e05795b0 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2410,8 +2410,10 @@ emae_option_checkspin (EMAccountEditorService *service, CamelURL *url, const gch check = g_object_new (gtk_check_button_get_type (), "label", pre, "use_underline", TRUE, "active", enable, NULL); spin = gtk_spin_button_new ((GtkAdjustment *)gtk_adjustment_new (def, min, max, 1, 1, 0), 1, 0); - if (post) + if (post) { label = gtk_label_new_with_mnemonic (post); + gtk_label_set_mnemonic_widget (GTK_LABEL (label), check); + } gtk_box_pack_start ((GtkBox *)hbox, check, FALSE, TRUE, 0); gtk_box_pack_start ((GtkBox *)hbox, spin, FALSE, TRUE, 0); if (label) -- cgit v1.2.3