Skip to content

Commit

Permalink
Restored focus to canvas after changing CloneStampTool brush width
Browse files Browse the repository at this point in the history
  • Loading branch information
don-mccomb committed Nov 27, 2012
1 parent c43a1fb commit a3d31f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Pinta.Tools/Tools/CloneStampTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3d31f1

Please sign in to comment.