[gtk+/gtk-2-22] Revert "Remove _gdk_region_new_from_yxbanded_rects()"
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Revert "Remove _gdk_region_new_from_yxbanded_rects()"
- Date: Wed, 26 May 2010 07:27:55 +0000 (UTC)
commit 863853ec5f67b21e7d5972ad03e08b6097c299ce
Author: Benjamin Otte <otte redhat com>
Date: Wed May 26 09:25:44 2010 +0200
Revert "Remove _gdk_region_new_from_yxbanded_rects()"
This reverts commit dde9cf28820696c57c1249ca08e318222665987d.
gdk/gdkinternals.h | 1 +
gdk/gdkregion-generic.c | 8 ++++++++
gdk/x11/gdkwindow-x11.c | 2 +-
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 8cc6871..822335f 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -664,6 +664,7 @@ GdkWindow *_gdk_window_get_input_window_for_event (GdkWindow *native_window,
GdkEventType event_type,
int x, int y,
gulong serial);
+GdkRegion *_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects, int n_rects);
/*****************************
* offscreen window routines *
diff --git a/gdk/gdkregion-generic.c b/gdk/gdkregion-generic.c
index d0224f5..745e20f 100644
--- a/gdk/gdkregion-generic.c
+++ b/gdk/gdkregion-generic.c
@@ -17,6 +17,14 @@ gdk_region_new (void)
return cairo_region_create ();
}
+GdkRegion *
+_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects,
+ int num_rects)
+{
+ return cairo_region_create_rectangles ((cairo_rectangle_int_t *) rects, num_rects);
+}
+
+
/**
* gdk_region_rectangle:
* @rectangle: a #GdkRectangle
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 236f17f..e2dd131 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -4632,7 +4632,7 @@ _xwindow_get_shape (Display *xdisplay,
}
XFree (xrl);
- shape = cairo_region_create_rectangles (rl, rn);
+ shape = _gdk_region_new_from_yxbanded_rects (rl, rn);
g_free (rl);
return shape;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]