app: get rid of #ifdef USE_CAIRO_REGION almost everywhere

get replaced by GDK region functions and use the cairo region
functions unconditionally all over the place.
This commit is contained in:
Michael Natterer
2010-10-22 19:56:59 +02:00
parent 40797f1fd4
commit 60d24b4c04
19 changed files with 10 additions and 136 deletions

View File

@ -285,11 +285,7 @@ gimp_canvas_polygon_get_extents (GimpCanvasItem *item,
rectangle.width = x2 - x1;
rectangle.height = y2 - y1;
#ifdef USE_CAIRO_REGION
return cairo_region_create_rectangle ((cairo_rectangle_int_t *) &rectangle);
#else
return gdk_region_rectangle (&rectangle);
#endif
}
GimpCanvasItem *