From 158d67f8b6f9623a204f472379272344b4919526 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Mon, 24 Jul 2006 11:29:51 +0000 Subject: activate the mnemonic for text box, add an extra paramenter to the function call. Fixes #332282. Patch submitted by "Vandana Shenoy .B " svn path=/trunk/; revision=32404 --- mail/em-account-editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/em-account-editor.c') 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) { -- cgit v1.2.3