diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index b7abe7b..e4d8a45 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -129,7 +129,7 @@ draw_window_on_pixbuf (GtkWidget *widget)
 }
 
 static void
-pixbuf_apply_mask_region (GdkPixbuf *pixbuf, GdkRegion *region)
+pixbuf_apply_mask_region (GdkPixbuf *pixbuf, cairo_region_t *region)
 {
   gint nchannels, rowstride, w, h;
   guchar *pixels, *p;
@@ -149,7 +149,7 @@ pixbuf_apply_mask_region (GdkPixbuf *pixbuf, GdkRegion *region)
   for (w = 0; w < gdk_pixbuf_get_width (pixbuf); ++w)
     for (h = 0; h < gdk_pixbuf_get_height (pixbuf); ++h)
     {
-      if (!gdk_region_point_in (region, w, h))
+      if (!cairo_region_contains_point (region, w, h))
       {
         p = pixels + h * rowstride + w * nchannels;
         if (G_BYTE_ORDER == G_BIG_ENDIAN)
@@ -231,7 +231,7 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
   MetaTheme *theme;
   GdkPixbuf *pixbuf, *icon;
   int icon_width, icon_height;
-  GdkRegion *region;
+  cairo_region_t *region;
 
   g_object_set (gtk_settings_get_default (),
     "gtk-theme-name", (char *) theme_thumbnail_data->control_theme_name->data,
@@ -314,7 +314,7 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
   region = meta_preview_get_clip_region (META_PREVIEW (preview),
       META_THUMBNAIL_SIZE, META_THUMBNAIL_SIZE);
   pixbuf_apply_mask_region (pixbuf, region);
-  gdk_region_destroy (region);
+  cairo_region_destroy (region);
 
   g_object_unref (icon);
   gtk_widget_destroy (window);
@@ -401,7 +401,7 @@ create_metacity_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
   GtkAllocation allocation;
   GdkPixmap *pixmap;
   GdkPixbuf *pixbuf, *retval;
-  GdkRegion *region;
+  cairo_region_t *region;
 
   theme = meta_theme_load ((char *) theme_thumbnail_data->wm_theme_name->data, NULL);
   if (theme == NULL)
@@ -451,7 +451,7 @@ create_metacity_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
   region = meta_preview_get_clip_region (META_PREVIEW (preview),
       METACITY_THUMBNAIL_WIDTH * 1.2, METACITY_THUMBNAIL_HEIGHT * 1.2);
   pixbuf_apply_mask_region (pixbuf, region);
-  gdk_region_destroy (region);
+  cairo_region_destroy (region);
 
 
   retval = gdk_pixbuf_scale_simple (pixbuf,
