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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 1d2c07bd91..0a5b93a995 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1883,7 +1883,7 @@ emae_option_entry_changed(GtkEntry *entry, EMAccountEditorService *service)
}
static GtkWidget *
-emae_option_entry(EMAccountEditorService *service, CamelURL *url, const char *name, const char *def)
+emae_option_entry(EMAccountEditorService *service, CamelURL *url, const char *name, const char *def, GtkWidget *l)
{
GtkWidget *w;
const char *val = camel_url_get_param(url, name);
@@ -1900,6 +1900,7 @@ emae_option_entry(EMAccountEditorService *service, CamelURL *url, const char *na
w = g_object_new(gtk_entry_get_type(),
"text", val,
NULL);
+ gtk_label_set_mnemonic_widget ((GtkLabel*)l, w);
g_object_set_data((GObject *)w, "option-name", (void *)name);
g_signal_connect(w, "changed", G_CALLBACK(emae_option_entry_changed), service);
gtk_widget_show(w);
@@ -2104,7 +2105,7 @@ section:
case CAMEL_PROVIDER_CONF_ENTRY:
l = g_object_new(gtk_label_get_type(), "label", entries[i].text, "xalign", 0.0, "use_underline", TRUE, NULL);
gtk_widget_show(l);
- w = emae_option_entry(service, url, entries[i].name, entries[i].value);
+ w = emae_option_entry(service, url, entries[i].name, entries[i].value, l);
gtk_table_attach((GtkTable *)parent, l, 0, 1, row, row+1, GTK_FILL, 0, 0, 0);
gtk_table_attach((GtkTable *)parent, w, 1, 2, row, row+1, GTK_EXPAND|GTK_FILL, 0, 0, 0);
if (depw) {