diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2006-07-24 19:29:51 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2006-07-24 19:29:51 +0800 |
commit | 158d67f8b6f9623a204f472379272344b4919526 (patch) | |
tree | 89efc48e47008695df38c696b8d52773ab8b9372 | |
parent | 401a1b85c6a5c5988cda3a2075e8320ed1d58daf (diff) | |
download | gsoc2013-evolution-158d67f8b6f9623a204f472379272344b4919526.tar.gz gsoc2013-evolution-158d67f8b6f9623a204f472379272344b4919526.tar.zst gsoc2013-evolution-158d67f8b6f9623a204f472379272344b4919526.zip |
activate the mnemonic for text box, add an extra paramenter to the
function call. Fixes #332282. Patch submitted by
"Vandana Shenoy .B <shvandana@novell.com>"
svn path=/trunk/; revision=32404
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-account-editor.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 793a5bca8d..fe37e1c669 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,12 @@ 2006-07-24 Sushma Rai <rsushma@novell.com> + * em-account-editor.c: (emae_option_entry) : activate the mnemonic for + text box, add an extra paramenter to the function call. + Fixes #332282. + Patch submitted by "Vandana Shenoy .B <shvandana@novell.com>" + +2006-07-24 Sushma Rai <rsushma@novell.com> + * em-subscribe-editor.c (_EMSubscribeEditor): Removed the members subscribe_button and unsubscribe_button. (sub_do_subscribe)(sub_subscribe)(sub_editor_subscribe) 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) { |