[goocanvas/new-api] 2010-06-30 Damon Chaplin <damon gnome org>



commit f69a7a2707eb285d6d26b9ba9dcb96379d07a729
Author: Damon Chaplin <damon gnome org>
Date:   Thu Jul 1 12:48:52 2010 +0100

    2010-06-30  Damon Chaplin  <damon gnome org>
    
    	    * src/goocanvas.c (goo_canvas_expose_event): do a cairo_save()/restore()
    	    around painting the main items, so the static items don't get clipped.

 ChangeLog       |    5 +++++
 src/goocanvas.c |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a74450f..ef8a155 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-06-30  Damon Chaplin  <damon gnome org>
 
+	* src/goocanvas.c (goo_canvas_expose_event): do a cairo_save()/restore()
+	around painting the main items, so the static items don't get clipped.
+
+2010-06-30  Damon Chaplin  <damon gnome org>
+
 	* src/goocanvas.c (goo_canvas_update_items_using_style): new function
 	to update items when they are using a shared style.
 
diff --git a/src/goocanvas.c b/src/goocanvas.c
index 759da94..6c6b20a 100644
--- a/src/goocanvas.c
+++ b/src/goocanvas.c
@@ -2307,6 +2307,8 @@ goo_canvas_expose_event (GtkWidget      *widget,
 
   cr = goo_canvas_create_cairo_context (canvas);
 
+  cairo_save (cr);
+
   if (canvas->need_update)
     goo_canvas_update_internal (canvas, cr);
 
@@ -2358,6 +2360,8 @@ goo_canvas_expose_event (GtkWidget      *widget,
 
   goo_canvas_item_paint (canvas->root_item, cr, &bounds, canvas->scale);
 
+  cairo_restore (cr);
+
   paint_static_items (canvas, event, cr);
 
   cairo_destroy (cr);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]