Additional change for wxGTK2 that I forgot to check in yesterday

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-02 06:10:21 +00:00
parent 4c50ccaa92
commit cda461a616
2 changed files with 5 additions and 1 deletions

View File

@@ -1441,10 +1441,14 @@ long wxPyGetWinHandle(wxWindow* win) {
// Find and return the actual X-Window.
#ifdef __WXGTK__
if (win->m_wxwindow) {
#ifdef __WXGTK20__
return (long) GDK_WINDOW_XWINDOW(GTK_PIZZA(win->m_wxwindow)->bin_window);
#else
GdkWindowPrivate* bwin = (GdkWindowPrivate*)GTK_PIZZA(win->m_wxwindow)->bin_window;
if (bwin) {
return (long)bwin->xwindow;
}
#endif
}
#endif
return 0;