Skip to content

Commit

Permalink
[Fixes bug #721678] Set ActivatesDefault on spinners so pressing ente…
Browse files Browse the repository at this point in the history
…r in them will close the dialog.
  • Loading branch information
jpobst committed Feb 21, 2011
1 parent 42e7596 commit a29a309
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pinta/Dialogs/NewImageDialog.cs
Expand Up @@ -39,6 +39,9 @@ public NewImageDialog () : base (string.Empty, PintaCore.Chrome.MainWindow, Dial
this.Icon = Gtk.IconTheme.Default.LoadIcon ("gtk-new", 16, IconLookupFlags.UseBuiltin);
DefaultResponse = ResponseType.Ok;
AlternativeButtonOrder = new int[] { (int) ResponseType.Ok, (int) ResponseType.Cancel };

widthSpinner.ActivatesDefault = true;
heightSpinner.ActivatesDefault = true;
}

public int NewImageWidth {
Expand Down

0 comments on commit a29a309

Please sign in to comment.