diff src/gtkrequest.c @ 12666:8765dee8f517

[gaim-migrate @ 15009] SF Patch #1391642 from Sadrul "This patch makes the accelerators set for request-actions work (like in IM/View Info/View Log etc dialogs), ie. if you press alt+n in one of these dialogs, the name-textentry will get focus." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 28 Dec 2005 09:04:51 +0000
parents e856f985a0b9
children 339c7dda758d
line wrap: on
line diff
--- a/src/gtkrequest.c	Wed Dec 28 09:01:41 2005 +0000
+++ b/src/gtkrequest.c	Wed Dec 28 09:04:51 2005 +0000
@@ -1609,6 +1609,7 @@
 				GaimRequestFieldType type;
 				GtkWidget *widget = NULL;
 
+				label = NULL;
 				field = fl->data;
 
 				if (!gaim_request_field_is_visible(field)) {
@@ -1676,6 +1677,11 @@
 				else
 					continue;
 
+#if GTK_CHECK_VERSION(2,4,0)
+				if (label)
+					gtk_label_set_mnemonic_widget(GTK_LABEL(label), widget);
+#endif
+
 				if (type == GAIM_REQUEST_FIELD_STRING &&
 					gaim_request_field_string_is_multiline(field))
 				{