]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
don't crash when IsEmpty() is called on invalid bundle; don't assert if GetIcon(...
[wxWidgets.git] / src / gtk / button.cpp
index efcfb9626fd11a816c2f9c0fdcd93d2363dbb01d..3e4e83feebab585892ab87731b931c269dc71c22 100644 (file)
@@ -111,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 ))
@@ -257,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;
 }