Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Restored focus to canvas after changing CloneStampTool brush width

  • Loading branch information...
commit a3d31f106173fbac414ff0a3ec4298f7d8485677 1 parent c43a1fb
@don-mccomb don-mccomb authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Pinta.Tools/Tools/CloneStampTool.cs
View
8 Pinta.Tools/Tools/CloneStampTool.cs
@@ -66,7 +66,13 @@ protected override void OnBuildToolBar(Gtk.Toolbar tb)
base.OnBuildToolBar(tb);
// Change the cursor when the BrushWidth is changed.
- brush_width.ComboBox.Changed += (sender, e) => SetCursor (DefaultCursor);
+ brush_width.ComboBox.Changed += HandleBrushWidthComboBoxChanged;
+ }
+
+ void HandleBrushWidthComboBoxChanged (object sender, EventArgs e)
+ {
+ SetCursor (DefaultCursor);
+ PintaCore.Chrome.Canvas.GrabFocus ();
}
protected override void OnMouseDown (Gtk.DrawingArea canvas, Gtk.ButtonPressEventArgs args, Cairo.PointD point)
Please sign in to comment.
Something went wrong with that request. Please try again.