changes to make wxGTK compile with GTK+ 2.0: now it does but the minimal
sample crashes on startup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,13 +21,23 @@
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/app.h"
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
// need this to get gdk_image_new_bitmap()
|
||||
#define GDK_ENABLE_BROKEN
|
||||
#endif
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkx.h>
|
||||
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
#include <gdk/gdkrgb.h>
|
||||
#endif
|
||||
#ifdef __WXGTK20__
|
||||
#include <gdk/gdkimage.h>
|
||||
#else // GTK+ 1.2
|
||||
// VZ: is this still needed? seems to compile fine without it...
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
#include <gdk/gdkrgb.h>
|
||||
#endif
|
||||
#endif // GTK+ 2.0/1.2
|
||||
|
||||
extern void gdk_wx_draw_bitmap (GdkDrawable *drawable,
|
||||
GdkGC *gc,
|
||||
|
Reference in New Issue
Block a user