X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c20e8f816b21b911e3a8ed8197c21df6ce726d6..9859d369b49e35a1cad0f760173e165f974fb6cb:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index a9631c7958..3e4e83feeb 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -13,6 +13,11 @@ #if wxUSE_BUTTON #include "wx/button.h" + +#ifndef WX_PRECOMP + #include "wx/toplevel.h" +#endif + #include "wx/stockitem.h" #include "wx/gtk/private.h" @@ -106,7 +111,6 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label, long style, const wxValidator& validator, const wxString &name ) { m_needParent = true; - m_acceptsFocus = true; if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, validator, name )) @@ -252,7 +256,7 @@ bool wxButton::Enable( bool enable ) return true; } -bool wxButton::IsOwnGtkWindow( GdkWindow *window ) +GdkWindow *wxButton::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const { return GTK_BUTTON(m_widget)->event_window; }