Skip to content
Browse files

Restored focus to canvas after changing CloneStampTool brush width

  • Loading branch information...
1 parent c43a1fb commit a3d31f106173fbac414ff0a3ec4298f7d8485677 @don-mccomb don-mccomb committed Nov 28, 2012
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)

0 comments on commit a3d31f1

Please sign in to comment.
Something went wrong with that request. Please try again.