[cairo-commit] goocanvas/src goocanvasview.c,1.2,1.3

Damon Chaplin commit at pdx.freedesktop.org
Wed Mar 22 16:14:01 PST 2006


Committed by: damon

Update of /cvs/cairo/goocanvas/src
In directory kemper:/tmp/cvs-serv14672/src

Modified Files:
	goocanvasview.c 
Log Message:
2006-03-23  Damon Chaplin  <damon at gnome.org>

	* src/goocanvasview.c (goo_canvas_view_scroll_to): freeze the canvas
	while setting the adjustments so we don't redraw twice.



Index: goocanvasview.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvasview.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- goocanvasview.c	22 Mar 2006 23:49:44 -0000	1.2
+++ goocanvasview.c	23 Mar 2006 00:13:59 -0000	1.3
@@ -688,8 +688,13 @@
   y = CLAMP (y, view->vadjustment->lower,
 	     view->vadjustment->upper - view->vadjustment->page_size);
 
+  view->freeze_count++;
+
   gtk_adjustment_set_value (view->hadjustment, x);
   gtk_adjustment_set_value (view->vadjustment, y);
+
+  view->freeze_count--;
+  goo_canvas_view_adjustment_value_changed (NULL, view);
 }
 
 



More information about the cairo-commit mailing list