Don't redraw the view, only invalidate it. This causes the redraw to occur

2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_set_marker): Don't redraw the view, only
	invalidate it. This causes the redraw to occur in an idle-handler
	intead of each time this function is called, which reduces flicker
	when opening new images. Stil some flicker left though...

svn path=/trunk/; revision=26737
This commit is contained in:
Martin Nordholts
2008-08-24 06:02:21 +00:00
committed by Martin Nordholts
parent 93e5a3d293
commit fa3b6cdb1a
2 changed files with 10 additions and 2 deletions

View File

@ -537,8 +537,8 @@ gimp_navigation_view_set_marker (GimpNavigationView *nav_view,
gimp_navigation_view_transform (nav_view);
/* draw new marker */
gtk_widget_queue_draw (GTK_WIDGET (view));
/* Marker changed, invalidate */
gimp_view_renderer_invalidate (view->renderer);
}
void