[gtk+] gdkwidow: Make queue_antiexpose optional



commit 0dfd506b3c2e5c0c746929cebcc849238a5c9c32
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Jun 21 18:43:28 2014 -0400

    gdkwidow: Make queue_antiexpose optional

 gdk/broadway/gdkwindow-broadway.c |    7 -------
 gdk/gdkwindow.c                   |    5 ++++-
 gdk/quartz/gdkwindow-quartz.c     |    7 -------
 gdk/wayland/gdkwindow-wayland.c   |    7 -------
 gdk/win32/gdkwindow-win32.c       |    7 -------
 5 files changed, 4 insertions(+), 29 deletions(-)
---
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index 406384e..49a48ac 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -1495,12 +1495,6 @@ _gdk_broadway_display_after_process_all_updates (GdkDisplay *display)
 {
 }
 
-static void
-gdk_broadway_window_queue_antiexpose (GdkWindow *window,
-                                      cairo_region_t *area)
-{
-}
-
 guint32
 gdk_broadway_get_last_seen_time (GdkWindow  *window)
 {
@@ -1538,7 +1532,6 @@ gdk_window_impl_broadway_class_init (GdkWindowImplBroadwayClass *klass)
   impl_class->shape_combine_region = gdk_window_broadway_shape_combine_region;
   impl_class->input_shape_combine_region = gdk_window_broadway_input_shape_combine_region;
   impl_class->set_static_gravities = gdk_window_broadway_set_static_gravities;
-  impl_class->queue_antiexpose = gdk_broadway_window_queue_antiexpose;
   impl_class->destroy = _gdk_broadway_window_destroy;
   impl_class->destroy_foreign = gdk_broadway_window_destroy_foreign;
   impl_class->get_shape = gdk_broadway_window_get_shape;
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 556565f..b07ab96 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3374,7 +3374,10 @@ gdk_window_process_updates_internal (GdkWindow *window)
          cairo_region_get_extents (update_area, &clip_box);
          expose_region = cairo_region_copy (update_area);
          impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
-         impl_class->queue_antiexpose (window, update_area);
+
+          if (impl_class->queue_antiexpose)
+            impl_class->queue_antiexpose (window, update_area);
+
           impl_class->process_updates_recurse (window, expose_region);
          cairo_region_destroy (expose_region);
        }
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index fa3e65d..b3cc8de 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2058,12 +2058,6 @@ gdk_window_quartz_set_static_gravities (GdkWindow *window,
 }
 
 static void
-gdk_quartz_window_queue_antiexpose (GdkWindow *window,
-                                    cairo_region_t *area)
-{
-}
-
-static void
 gdk_quartz_window_set_focus_on_map (GdkWindow *window,
                                     gboolean focus_on_map)
 {
@@ -2894,7 +2888,6 @@ gdk_window_impl_quartz_class_init (GdkWindowImplQuartzClass *klass)
   impl_class->shape_combine_region = gdk_window_quartz_shape_combine_region;
   impl_class->input_shape_combine_region = gdk_window_quartz_input_shape_combine_region;
   impl_class->set_static_gravities = gdk_window_quartz_set_static_gravities;
-  impl_class->queue_antiexpose = gdk_quartz_window_queue_antiexpose;
   impl_class->destroy = gdk_quartz_window_destroy;
   impl_class->destroy_foreign = gdk_quartz_window_destroy_foreign;
   impl_class->get_shape = gdk_quartz_window_get_shape;
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 00cf218..826660c 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1336,12 +1336,6 @@ gdk_window_wayland_set_static_gravities (GdkWindow *window,
 }
 
 static void
-gdk_wayland_window_queue_antiexpose (GdkWindow      *window,
-                                     cairo_region_t *area)
-{
-}
-
-static void
 gdk_wayland_window_destroy (GdkWindow *window,
                             gboolean   recursing,
                             gboolean   foreign_destroy)
@@ -1983,7 +1977,6 @@ _gdk_window_impl_wayland_class_init (GdkWindowImplWaylandClass *klass)
   impl_class->shape_combine_region = gdk_window_wayland_shape_combine_region;
   impl_class->input_shape_combine_region = gdk_window_wayland_input_shape_combine_region;
   impl_class->set_static_gravities = gdk_window_wayland_set_static_gravities;
-  impl_class->queue_antiexpose = gdk_wayland_window_queue_antiexpose;
   impl_class->destroy = gdk_wayland_window_destroy;
   impl_class->destroy_foreign = gdk_window_wayland_destroy_foreign;
   impl_class->get_shape = gdk_wayland_window_get_shape;
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index c060184..53c8daa 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3239,12 +3239,6 @@ gdk_win32_window_get_shape (GdkWindow *window)
 }
 
 static void
-_gdk_win32_window_queue_antiexpose (GdkWindow *window,
-                                    cairo_region_t *area)
-{
-}
-
-static void
 gdk_win32_input_shape_combine_region (GdkWindow *window,
                                      const cairo_region_t *shape_region,
                                      gint offset_x,
@@ -3409,7 +3403,6 @@ gdk_window_impl_win32_class_init (GdkWindowImplWin32Class *klass)
   impl_class->shape_combine_region = gdk_win32_window_shape_combine_region;
   impl_class->input_shape_combine_region = gdk_win32_input_shape_combine_region;
   impl_class->set_static_gravities = gdk_win32_window_set_static_gravities;
-  impl_class->queue_antiexpose = _gdk_win32_window_queue_antiexpose;
   impl_class->destroy = gdk_win32_window_destroy;
   impl_class->destroy_foreign = gdk_win32_window_destroy_foreign;
   impl_class->get_shape = gdk_win32_window_get_shape;


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