]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
Fix a number of mingw compile errors.
[wxWidgets.git] / src / gtk / dcclient.cpp
index f6a7f3a94251d39c1ba7bbef9f8bc6bf989df793..798b1f413f1ef72c3d3c3320690fa26707ffaa7b 100644 (file)
@@ -295,7 +295,7 @@ wxWindowDCImpl::wxWindowDCImpl( wxDC *owner, wxWindow *window ) :
         wxCHECK_RET(widget, "DC needs a widget");
 
         m_gdkwindow = widget->window;
         wxCHECK_RET(widget, "DC needs a widget");
 
         m_gdkwindow = widget->window;
-        if (GTK_WIDGET_NO_WINDOW(widget))
+        if (!gtk_widget_get_has_window(widget))
             SetDeviceLocalOrigin(widget->allocation.x, widget->allocation.y);
     }
 
             SetDeviceLocalOrigin(widget->allocation.x, widget->allocation.y);
     }