[dia/dia-next: 7/59] Use cairo types instead of Gdk
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-next: 7/59] Use cairo types instead of Gdk
- Date: Wed, 9 Jan 2019 18:34:53 +0000 (UTC)
commit b5496dba21cdc86ad680bdf6e2bc187281014c15
Author: Zander Brown <zbrown gnome org>
Date: Tue Dec 11 00:16:50 2018 +0000
Use cairo types instead of Gdk
lib/renderer/diacairo-interactive.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lib/renderer/diacairo-interactive.c b/lib/renderer/diacairo-interactive.c
index 335c311b..a728eac0 100644
--- a/lib/renderer/diacairo-interactive.c
+++ b/lib/renderer/diacairo-interactive.c
@@ -52,7 +52,7 @@ struct _DiaCairoInteractiveRenderer
cairo_surface_t *pixmap; /* The pixmap shown in this display */
guint32 width; /* The width of the pixmap in pixels */
guint32 height; /* The height of the pixmap in pixels */
- GdkRegion *clip_region;
+ cairo_region_t *clip_region;
/** If non-NULL, this rendering is a highlighting with the given color. */
GdkRGBA *highlight_color;
@@ -481,9 +481,9 @@ clip_region_clear(DiaRenderer *object)
DiaCairoInteractiveRenderer *renderer = DIA_CAIRO_INTERACTIVE_RENDERER (object);
if (renderer->clip_region != NULL)
- gdk_region_destroy(renderer->clip_region);
+ cairo_region_destroy (renderer->clip_region);
- renderer->clip_region = gdk_region_new();
+ renderer->clip_region = cairo_region_create();
}
static void
@@ -491,7 +491,7 @@ clip_region_add_rect(DiaRenderer *object,
Rectangle *rect)
{
DiaCairoInteractiveRenderer *renderer = DIA_CAIRO_INTERACTIVE_RENDERER (object);
- GdkRectangle clip_rect;
+ cairo_rectangle_int_t clip_rect;
int x1,y1;
int x2,y2;
@@ -507,7 +507,7 @@ clip_region_add_rect(DiaRenderer *object,
clip_rect.width = x2 - x1 + 1;
clip_rect.height = y2 - y1 + 1;
- gdk_region_union_with_rect(renderer->clip_region, &clip_rect);
+ cairo_region_union_rectangle (renderer->clip_region, &clip_rect);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]