Dialog boxes: Grab focus of the source widget on reset
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Feb 2015 14:19:33 +0000 (15:19 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 14 Feb 2015 14:19:33 +0000 (15:19 +0100)
src/ui/gui/psppire-dialog-action.c

index 1a19ebb9a57ad3fce50e073b3a56d57f5618afa5..dfc934633d2706dc5158bcefae51acd1213c901c 100644 (file)
@@ -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 )