Deprecate GDK_WINDOW_OBJECT and GdkWindowObject

This commit is contained in:
Alexander Larsson 2009-09-04 17:53:27 +02:00
parent d0ac27fe5f
commit 812b3c451d
3 changed files with 7 additions and 0 deletions

View File

@ -258,9 +258,12 @@ typedef struct _GdkWindowObjectClass GdkWindowObjectClass;
#define GDK_IS_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW))
#define GDK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW))
#define GDK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW, GdkWindowObjectClass))
#ifndef GDK_DISABLE_DEPRECATED
#define GDK_WINDOW_OBJECT(object) ((GdkWindowObject *) GDK_WINDOW (object))
#ifndef GDK_COMPILATION
/* We used to export all of GdkWindowObject, but we don't want to keep doing so.
However, there are various parts of it accessed by macros and other code,
so we keep the old exported version public, but in reality it is larger. */
@ -316,6 +319,7 @@ struct _GdkWindowObject
GdkWindowRedirect *redirect;
};
#endif
#endif
struct _GdkWindowObjectClass
{

View File

@ -21,6 +21,8 @@
/* need to get the prototypes of all get_type functions */
#define GTK_ENABLE_BROKEN
#undef GTK_DISABLE_DEPRECATED
/* Need to get GDK_WINDOW_OBJECT */
#undef GDK_DISABLE_DEPRECATED
#include "config.h"

View File

@ -1,3 +1,4 @@
#undef GDK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#ifdef GDK_WINDOWING_X11
#include <X11/Xlib.h>