[gtk+] x11: Export GdkX11Visual
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Export GdkX11Visual
- Date: Tue, 21 Dec 2010 17:18:40 +0000 (UTC)
commit b154d3abf6421c7d0b1b6300711e05c108436b76
Author: Benjamin Otte <otte redhat com>
Date: Tue Dec 21 02:17:04 2010 +0100
x11: Export GdkX11Visual
gdk/x11/gdkvisual-x11.c | 6 ------
gdk/x11/gdkx11visual.h | 16 ++++++++++++++++
2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index 15a2d2c..ba3b4cc 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -33,12 +33,6 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-typedef struct _GdkX11Visual GdkX11Visual;
-typedef struct _GdkX11VisualClass GdkX11VisualClass;
-
-#define GDK_TYPE_X11_VISUAL (gdk_x11_visual_get_type ())
-#define GDK_X11_VISUAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_X11_VISUAL, GdkX11Visual))
-
struct _GdkX11Visual
{
GdkVisual visual;
diff --git a/gdk/x11/gdkx11visual.h b/gdk/x11/gdkx11visual.h
index db328a7..b356df5 100644
--- a/gdk/x11/gdkx11visual.h
+++ b/gdk/x11/gdkx11visual.h
@@ -38,6 +38,22 @@
G_BEGIN_DECLS
+#define GDK_TYPE_X11_VISUAL (gdk_x11_visual_get_type ())
+#define GDK_X11_VISUAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_X11_VISUAL, GdkX11Visual))
+#define GDK_X11_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_X11_VISUAL, GdkX11VisualClass))
+#define GDK_IS_X11_VISUAL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_X11_VISUAL))
+#define GDK_IS_X11_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_VISUAL))
+#define GDK_X11_VISUAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_X11_VISUAL, GdkX11VisualClass))
+
+#ifdef GDK_COMPILATION
+typedef struct _GdkX11Visual GdkX11Visual;
+#else
+typedef GdkVisual GdkX11Visual;
+#endif
+typedef struct _GdkX11VisualClass GdkX11VisualClass;
+
+GType gdk_x11_visual_get_type (void);
+
Visual * gdk_x11_visual_get_xvisual (GdkVisual *visual);
#define GDK_VISUAL_XVISUAL(visual) (gdk_x11_visual_get_xvisual (visual))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]