From e6ae733061cffc2cd6262b10bb1bb094b2d53af3 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 19 Jul 2000 09:32:26 +0000 Subject: [PATCH] Added "stand-ins" for a couple of Pango (Owen Taylor's multilingual text rendering engine, used by gtk+ 1.3 widgets) types, and added GTK_OBJECT_GET_CLASS macro for backwards compatibility with gtk+ 1.2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index 6f4be1ef8d..4b7e2f1df9 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1925,6 +1925,17 @@ typedef struct _GtkItemFactory GtkItemFactory; typedef struct _GtkSelectionData GtkSelectionData; typedef GtkWidget *WXWidget; + +#ifndef __WXGTK20__ +#define GTK_OBJECT_GET_CLASS(object) (GTK_OBJECT(object)->klass) +#endif + +#ifdef __WXGTK20__ +/* Stand-ins for Pango types */ +typedef struct _PangoContext PangoContext; +typedef struct _PangoLayout PangoLayout; +typedef struct _PangoFontDescription PangoFontDescription; +#endif #endif // GTK // This is required because of clashing macros in windows.h, which may be -- 2.47.2