[gtk+/gtk-2-24] Move GdkOffscreenWindow basic type info to gdkinternals.h



commit f8170ee87388653cfef605636520b7b6fba955cf
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 16 09:07:55 2011 +0100

    Move GdkOffscreenWindow basic type info to gdkinternals.h
    
    This is needed to handle runtime checks for GdkOffscreenWindows
    outside of gdkoffscreenwindow.c

 gdk/gdkinternals.h       |    4 ++++
 gdk/gdkoffscreenwindow.c |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 3234f2e..807e5aa 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -680,6 +680,10 @@ GdkRegion  *_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects, int n_rect
 /*****************************
  * offscreen window routines *
  *****************************/
+typedef struct _GdkOffscreenWindow      GdkOffscreenWindow;
+#define GDK_TYPE_OFFSCREEN_WINDOW            (gdk_offscreen_window_get_type())
+#define GDK_OFFSCREEN_WINDOW(object)         (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_OFFSCREEN_WINDOW, GdkOffscreenWindow))
+#define GDK_IS_OFFSCREEN_WINDOW(object)      (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_OFFSCREEN_WINDOW))
 GType gdk_offscreen_window_get_type (void);
 void       _gdk_offscreen_window_new                 (GdkWindow     *window,
 						      GdkScreen     *screen,
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 23d92af..22d0cba 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -46,7 +46,6 @@
  *ÂGDK_POINTER_MOTION_HINT_MASK isn't effective
  */
 
-typedef struct _GdkOffscreenWindow      GdkOffscreenWindow;
 typedef struct _GdkOffscreenWindowClass GdkOffscreenWindowClass;
 
 struct _GdkOffscreenWindow
@@ -67,9 +66,6 @@ struct _GdkOffscreenWindowClass
   GdkDrawableClass parent_class;
 };
 
-#define GDK_TYPE_OFFSCREEN_WINDOW            (gdk_offscreen_window_get_type())
-#define GDK_OFFSCREEN_WINDOW(object)         (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_OFFSCREEN_WINDOW, GdkOffscreenWindow))
-#define GDK_IS_OFFSCREEN_WINDOW(object)      (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_OFFSCREEN_WINDOW))
 #define GDK_OFFSCREEN_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_OFFSCREEN_WINDOW, GdkOffscreenWindowClass))
 #define GDK_IS_OFFSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_OFFSCREEN_WINDOW))
 #define GDK_OFFSCREEN_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_OFFSCREEN_WINDOW, GdkOffscreenWindowClass))



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