Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-07-08 08:22:11 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-07-08 08:22:11 (GMT)
commit9c77b69d6ece7df775fd326f0afcc5a752b7a3bf (patch)
tree0393d7f4c4b11fc86550d22a791371bec1a4b5b0 /shell
parent74dab93c159a81270cf70da84b03ae5ead191739 (diff)
Switch to GTK+ 3
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-utils.c21
-rw-r--r--shell/ev-utils.h2
2 files changed, 12 insertions, 11 deletions
diff --git a/shell/ev-utils.c b/shell/ev-utils.c
index 5c5e165..83cfcdb 100644
--- a/shell/ev-utils.c
+++ b/shell/ev-utils.c
@@ -187,9 +187,8 @@ ev_pixbuf_add_shadow (GdkPixbuf *src, int size,
* the region code.
*/
void
-ev_print_region_contents (GdkRegion *region)
+ev_print_region_contents (cairo_region_t *region)
{
- GdkRectangle *rectangles = NULL;
gint n_rectangles, i;
if (region == NULL) {
@@ -198,17 +197,19 @@ ev_print_region_contents (GdkRegion *region)
}
g_print ("<region %p>\n", region);
- gdk_region_get_rectangles (region, &rectangles, &n_rectangles);
+ n_rectangles = cairo_region_num_rectangles (region);
for (i = 0; i < n_rectangles; i++) {
+ GdkRectangle rect;
+
+ cairo_region_get_rectangle (region, i, &rect);
g_print ("\t(%d %d, %d %d) [%dx%d]\n",
- rectangles[i].x,
- rectangles[i].y,
- rectangles[i].x + rectangles[i].width,
- rectangles[i].y + rectangles[i].height,
- rectangles[i].width,
- rectangles[i].height);
+ rect.x,
+ rect.y,
+ rect.x + rect.width,
+ rect.y + rect.height,
+ rect.width,
+ rect.height);
}
- g_free (rectangles);
}
static void
diff --git a/shell/ev-utils.h b/shell/ev-utils.h
index 611ba9b..81acc46 100644
--- a/shell/ev-utils.h
+++ b/shell/ev-utils.h
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
GdkPixbuf* ev_pixbuf_add_shadow (GdkPixbuf *src, int size,
int x_offset, int y_offset, double opacity);
-void ev_print_region_contents (GdkRegion *region);
+void ev_print_region_contents (cairo_region_t *region);
void ev_gui_menu_position_tree_selection (GtkMenu *menu,
gint *x,