[gtk+/gtk-2-22] gdk: Undeprecate gdk_region_xor()



commit e8915ae422d34fd17868311d272b823b8a7108cf
Author: Benjamin Otte <otte redhat com>
Date:   Tue Aug 10 10:54:33 2010 +0200

    gdk: Undeprecate gdk_region_xor()
    
    cairo_region_xor() does now exist, so there's no need to deprecate this
    function.

 gdk/gdkregion-generic.c |    4 ----
 gdk/gdkregion.h         |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkregion-generic.c b/gdk/gdkregion-generic.c
index 10ad0cc..2581ff1 100644
--- a/gdk/gdkregion-generic.c
+++ b/gdk/gdkregion-generic.c
@@ -1509,10 +1509,6 @@ gdk_region_subtract (GdkRegion       *source1,
  * Sets the area of @source1 to the exclusive-OR of the areas of @source1
  * and @source2. The resulting area is the set of pixels contained in one
  * or the other of the two sources but not in both.
- *
- * Deprecated: 2.22: There is no replacement, but the function can be
- *                   reimplemented using gdk_region_intersect() and
- *                   gdk_region_subract() easily.
  **/
 void
 gdk_region_xor (GdkRegion       *source1,
diff --git a/gdk/gdkregion.h b/gdk/gdkregion.h
index 454194f..52dc6a1 100644
--- a/gdk/gdkregion.h
+++ b/gdk/gdkregion.h
@@ -109,10 +109,10 @@ void           gdk_region_union           (GdkRegion          *source1,
                                            const GdkRegion    *source2);
 void           gdk_region_subtract        (GdkRegion          *source1,
                                            const GdkRegion    *source2);
-#ifndef GDK_DISABLE_DEPRECATED
 void           gdk_region_xor             (GdkRegion          *source1,
                                            const GdkRegion    *source2);
 
+#ifndef GDK_DISABLE_DEPRECATED
 void   gdk_region_spans_intersect_foreach (GdkRegion          *region,
                                            const GdkSpan      *spans,
                                            int                 n_spans,



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