[gnome-games] gnotravex: GSEAL fixes
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnotravex: GSEAL fixes
- Date: Sat, 3 Jul 2010 09:32:08 +0000 (UTC)
commit 636769e681062760a93082808c2aaeb7ddd5cbf2
Author: Christian Persch <chpe gnome org>
Date: Sat Jul 3 11:31:53 2010 +0200
gnotravex: GSEAL fixes
gnotravex/gnotravex.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index 07a16a1..48196d1 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -1375,7 +1375,11 @@ void
redraw_all (void)
{
guint x, y;
+#if GTK_CHECK_VERSION (2, 90, 5)
+ cairo_region_t *region;
+#else
GdkRegion *region;
+#endif
if (!gtk_widget_get_window (space))
return;
@@ -1393,18 +1397,32 @@ redraw_all (void)
gui_draw_arrow(buffer);
gdk_window_end_paint (gtk_widget_get_window (space));
+
+#if GTK_CHECK_VERSION (2, 90, 5)
+ cairo_region_destroy (region);
+#else
gdk_region_destroy (region);
+#endif
}
void
redraw_left (void)
{
gint x, y;
+#if GTK_CHECK_VERSION (2, 90, 5)
+ cairo_region_t *region;
+ cairo_rectangle_int_t rect =
+#else
GdkRegion *region;
GdkRectangle rect =
+#endif
{ xborder, yborder, tile_size * size, tile_size * size };
+#if GTK_CHECK_VERSION (2, 90, 5)
+ region = cairo_region_create_rectangle (&rect);
+#else
region = gdk_region_rectangle (&rect);
+#endif
gdk_window_begin_paint_region (gtk_widget_get_window (space), region);
@@ -1413,7 +1431,12 @@ redraw_left (void)
gui_draw_pixmap (buffer, x, y, FALSE, NULL);
gdk_window_end_paint (gtk_widget_get_window (space));
+
+#if GTK_CHECK_VERSION (2, 90, 5)
+ cairo_region_destroy (region);
+#else
gdk_region_destroy (region);
+#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]