#include "wx/glcanvas.h"
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/frame.h"
- #include "wx/colour.h"
- #include "wx/module.h"
-#endif // WX_PRECOMP
-
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
long style,
const wxString& name,
const int *attribList,
- const wxPalette& WXUNUSED_UNLESS_DEBUG(palette))
+ const wxPalette& palette)
{
+#if wxUSE_PALETTE
wxASSERT_MSG( !palette.IsOk(), wxT("palettes not supported") );
+#endif // wxUSE_PALETTE
+ wxUnusedVar(palette); // Unused when wxDEBUG_LEVEL==0
m_exposed = false;
m_noExpose = true;
Window wxGLCanvas::GetXWindow() const
{
- GdkWindow *window = m_wxwindow->window;
+ GdkWindow* window = GTKGetDrawingWindow();
return window ? GDK_WINDOW_XWINDOW(window) : 0;
}