[gtk+/rendering-cleanup-next: 187/199] gdk: Remove default implementations for get_*_region



commit 72691df03f48d19b7e8c7c123e28fff645b0e460
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 17:16:13 2010 +0200

    gdk: Remove default implementations for get_*_region
    
    This should only be used on windows anyway and GdkWindow has an
    implementation for both functions.

 gdk/gdkdraw.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c
index 1e03392..2b48a0a 100644
--- a/gdk/gdkdraw.c
+++ b/gdk/gdkdraw.c
@@ -36,17 +36,11 @@
 #include "gdkpixbuf.h"
 
 
-static cairo_region_t *  gdk_drawable_real_get_visible_region     (GdkDrawable  *drawable);
-     
-
 G_DEFINE_ABSTRACT_TYPE (GdkDrawable, gdk_drawable, G_TYPE_OBJECT)
 
 static void
 gdk_drawable_class_init (GdkDrawableClass *klass)
 {
-  /* Default implementation for clip and visible region is the same */
-  klass->get_clip_region = gdk_drawable_real_get_visible_region;
-  klass->get_visible_region = gdk_drawable_real_get_visible_region;
 }
 
 static void
@@ -123,19 +117,6 @@ gdk_drawable_get_visible_region (GdkDrawable *drawable)
   return GDK_DRAWABLE_GET_CLASS (drawable)->get_visible_region (drawable);
 }
 
-static cairo_region_t *
-gdk_drawable_real_get_visible_region (GdkDrawable *drawable)
-{
-  GdkRectangle rect;
-
-  rect.x = 0;
-  rect.y = 0;
-
-  gdk_drawable_get_size (drawable, &rect.width, &rect.height);
-
-  return cairo_region_create_rectangle (&rect);
-}
-
 /**
  * _gdk_drawable_ref_cairo_surface:
  * @drawable: a #GdkDrawable



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]