Commit 8c07e5275975e56e7548c7f1ec484f4ece474fa6

Avatar

Repository git://git.gnome.org/gimp master
by Michael Natterer on 2009-11-03 12:58 (about 1 month ago)

Don't let focus-in and focus-out on the canvas invalidate everything
Implement GtkWidget::focus_in_event() and ::focus_out_event() in
GimpCanvas and don't chanin up so the default handler never runs.
Remove code that tries to do the same in the canvas' tool events
callback.

The default impl invalidates the entire widget for no reason (the
canvas doesn't draw a focus indicator anyway), and the old solution
failed for empty displays and was constantly invalidating the entire
drop zone when the toplevel window gained or lost focus.

Language Totals

  Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
  C 29 12 0 3 2 1

Files Changed

[2 total ]
File Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
app/display/gimpcanvas.c
  C 29 11 0 0 2 0
app/display/gimpdisplayshell-callbacks.c
  C 0 1 0 3 0 1