X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f81dfa1a01ad34d59923a48868732de8de282ff..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/gtk/spinctrl.cpp diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index 0e91452d8c..2cea9634f5 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -249,16 +249,20 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event ) event.Skip(); } -bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window ) +GdkWindow *wxSpinCtrl::GTKGetWindow(wxArrayGdkWindows& windows) const { GtkSpinButton* spinbutton = GTK_SPIN_BUTTON(m_widget); - return window == spinbutton->entry.text_area || window == spinbutton->panel; + + windows.push_back(spinbutton->entry.text_area); + windows.push_back(spinbutton->panel); + + return NULL; } wxSize wxSpinCtrl::DoGetBestSize() const { wxSize ret( wxControl::DoGetBestSize() ); - wxSize best(95, ret.y); + wxSize best(95, ret.y); // FIXME: 95? CacheBestSize(best); return best; }