]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/glcanvas.cpp
wxRichTextCtrl::ApplyStyle now applies a paragraph style at the cursor
[wxWidgets.git] / src / gtk / glcanvas.cpp
index c8b805cc007fcb2a079fbf427402d2adb0ab26f3..89ffe1ba9f50e0fccba7c30274fe8e5a6bd48b27 100644 (file)
@@ -205,7 +205,7 @@ bool wxGLCanvas::Create(wxWindow *parent,
                         const int *attribList,
                         const wxPalette& WXUNUSED_UNLESS_DEBUG(palette))
 {
-    wxASSERT_MSG( !palette.IsOk(), _T("palettes not supported") );
+    wxASSERT_MSG( !palette.IsOk(), wxT("palettes not supported") );
 
     m_exposed = false;
     m_noExpose = true;
@@ -247,7 +247,7 @@ bool wxGLCanvas::Create(wxWindow *parent,
 
 Window wxGLCanvas::GetXWindow() const
 {
-    GdkWindow *window = m_wxwindow->window;
+    GdkWindow* window = GTKGetDrawingWindow();
     return window ? GDK_WINDOW_XWINDOW(window) : 0;
 }