# HG changeset patch # User Richard Laager # Date 1135760691 0 # Node ID 8765dee8f51706302dd2d62e85589826eb6fc1fd # Parent cdbef02c91e914f19a600dd86df33da5981d2e5a [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 diff -r cdbef02c91e9 -r 8765dee8f517 src/gtkrequest.c --- 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)) {