-#if wxUSE_NEW_DC
- wxImplDC *impl = dc.GetImpl();
- wxGTKClientImplDC *client_impl = wxDynamicCast( impl, wxGTKClientImplDC );
- // Hack alert
- client_impl->m_window = widget->window;
-#else
- // Hack alert
- dc.m_window = widget->window;
-#endif
+ wxDCImpl *impl = dc.GetImpl();
+ wxClientDCImpl *gtk_impl = wxDynamicCast( impl, wxClientDCImpl );
+ gtk_impl->m_gdkwindow = widget->window; // Hack alert