From: John Darrington Date: Sat, 14 Feb 2015 14:19:33 +0000 (+0100) Subject: Dialog boxes: Grab focus of the source widget on reset X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=706a070cfebd49ae4eb9a0d33ab1dd64adfc38a6 Dialog boxes: Grab focus of the source widget on reset --- diff --git a/src/ui/gui/psppire-dialog-action.c b/src/ui/gui/psppire-dialog-action.c index 1a19ebb9a5..dfc934633d 100644 --- a/src/ui/gui/psppire-dialog-action.c +++ b/src/ui/gui/psppire-dialog-action.c @@ -106,6 +106,8 @@ psppire_dialog_action_activate (PsppireDialogAction *act) if (GTK_ACTION_CLASS (psppire_dialog_action_parent_class)->activate) GTK_ACTION_CLASS (psppire_dialog_action_parent_class)->activate ( GTK_ACTION (act)); + gtk_widget_grab_focus (act->source); + response = psppire_dialog_run (PSPPIRE_DIALOG (act->dialog)); if ( class->generate_syntax )