[gtk+/client-side-windows: 275/284] Remove offscreen hooks support



commit 2c877d4c2d83c1736b48c8833f259cf50bcbac33
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 18 11:58:56 2009 +0100

    Remove offscreen hooks support
    
    In the new world offscreen windows are not put in the hierarchy, but are
    rather toplevels for themselves. Offscreen hooks don't make any sense
    in this model.
---
 gdk/gdk.symbols          |    1 -
 gdk/gdkoffscreenwindow.c |   28 ----------------------------
 gdk/gdkwindow.c          |    3 ---
 gdk/gdkwindow.h          |   19 -------------------
 4 files changed, 0 insertions(+), 51 deletions(-)

diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 25de774..44cee62 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -720,7 +720,6 @@ gdk_window_set_composited
 
 #if IN_HEADER(__GDK_WINDOW_H__)
 #if IN_FILE(__GDK_OFFSCREEN_WINDOW_C__)
-gdk_window_set_offscreen_hooks
 gdk_window_get_offscreen_pixmap
 #endif
 #endif
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 6912653..5791eac 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -1008,34 +1008,6 @@ gdk_offscreen_window_get_geometry (GdkWindow *window,
     }
 }
 
-/**
- * gdk_window_set_offscreen_hooks:
- * @offscreen_window: a offscreen #GdkWindow
- * @hooks:  a table of pointers to functions for handling offscreen
- *          window coordinates translations
- *
- * Sets the parent-to-offscreen-child and offscreen-child-to-parent coordinate
- * translation functions for offscreen windows.
- *
- * This function is useful for complex widgets employing
- * offscreen windows.
- *
- * Since: 2.16
- */
-void
-gdk_window_set_offscreen_hooks (GdkWindow  *offscreen_window,
-                                const GdkOffscreenChildHooks *hooks)
-{
-  GdkWindowObject *private;
-
-  g_return_if_fail (GDK_IS_WINDOW (offscreen_window));
-  g_return_if_fail (hooks != NULL);
-
-  private = (GdkWindowObject *) offscreen_window;
-
-  private->offscreen_hooks = hooks;
-}
-
 static gboolean
 gdk_offscreen_window_queue_antiexpose (GdkWindow *window,
 				       GdkRegion *area)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index ed5ad4c..a27e30c 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7682,9 +7682,6 @@ convert_coords_to_child (GdkWindowObject *child,
 {
   *child_x = x - child->x;
   *child_y = y - child->y;
-
-  if (child->offscreen_hooks)
-    child->offscreen_hooks->from_parent ((GdkWindow *)child, x, y, child_x, child_y);
 }
 
 static gboolean
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 3b3683f..0aa20fd 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -40,7 +40,6 @@ G_BEGIN_DECLS
 typedef struct _GdkGeometry                GdkGeometry;
 typedef struct _GdkWindowAttr              GdkWindowAttr;
 typedef struct _GdkPointerHooks            GdkPointerHooks;
-typedef struct _GdkOffscreenChildHooks     GdkOffscreenChildHooks;
 typedef struct _GdkWindowRedirect          GdkWindowRedirect;
 typedef struct _GdkWindowPaint             GdkWindowPaint;
 
@@ -251,20 +250,6 @@ struct _GdkPointerHooks
                                    gint            *win_y);
 };
 
-struct _GdkOffscreenChildHooks
-{
-  void       (*from_parent) (GdkWindow *offscreen_child,
-			     gdouble    parent_x,
-			     gdouble    parent_y,
-			     gdouble   *child_x,
-			     gdouble   *child_y);
-  void       (*to_parent)   (GdkWindow *offscreen_child,
-			     gdouble    child_x,
-			     gdouble    child_y,
-			     gdouble   *parent_x,
-			     gdouble   *parent_y);
-};
-
 typedef struct _GdkWindowObject GdkWindowObject;
 typedef struct _GdkWindowObjectClass GdkWindowObjectClass;
 
@@ -324,7 +309,6 @@ struct _GdkWindowObject
   guint update_and_descendants_freeze_count;
 
   GdkWindowRedirect *redirect;
-  const GdkOffscreenChildHooks *offscreen_hooks;
 
   /* The GdkWindowObject that has the impl, ref:ed if another window.
    * This ref is required to keep the wrapper of the impl window alive
@@ -699,9 +683,6 @@ void       gdk_window_redirect_to_drawable   (GdkWindow     *window,
                                               gint           height);
 void       gdk_window_remove_redirection     (GdkWindow     *window);
 
-void       gdk_window_set_offscreen_hooks    (GdkWindow                    *offscreen_window,
-                                              const GdkOffscreenChildHooks *hooks);
-
 #ifndef GDK_DISABLE_DEPRECATED
 #define GDK_ROOT_PARENT()             (gdk_get_default_root_window ())
 #define gdk_window_get_size            gdk_drawable_get_size



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