[evolution/foocanvas] Revert hack in foo_canvas_group_draw and add a warning if we draw outside of the expose region.



commit 7705340df4c38d98fc02e6a5fab5ca35e67d9024
Author: H.Habighorst <h habighorst googlemail com>
Date:   Tue May 11 18:02:57 2010 +0200

    Revert hack in foo_canvas_group_draw and add a warning if we draw outside of the expose region.

 widgets/libfoocanvas/foo-canvas.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/widgets/libfoocanvas/foo-canvas.c b/widgets/libfoocanvas/foo-canvas.c
index db008eb..5e28abd 100644
--- a/widgets/libfoocanvas/foo-canvas.c
+++ b/widgets/libfoocanvas/foo-canvas.c
@@ -1464,11 +1464,10 @@ foo_canvas_group_draw (FooCanvasItem *item, GdkDrawable *drawable,
 			child_rect.width = child->x2 - child->x1 + 1;
 			child_rect.height = child->y2 - child->y1 + 1;
 
-/*
- *			XXX: This is a nasty hack...
- *			if (gdk_region_rect_in (expose->region, &child_rect) != GDK_OVERLAP_RECTANGLE_OUT)
- */
+			if (gdk_region_rect_in (expose->region, &child_rect) != GDK_OVERLAP_RECTANGLE_OUT)
 				(* FOO_CANVAS_ITEM_GET_CLASS (child)->draw) (child, drawable, expose);
+			else
+				g_print("foo_canvas_group_draw: Canvas item is out of expose region! \n");
 		}
 	}
 }



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