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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user