X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3dfaa10a67a46d8e50e297a068ac145dab90033..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/gtk/bmpbuttn.cpp diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 4f28995d7b..eeb89d7163 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -7,10 +7,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "bmpbuttn.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/defs.h" #if wxUSE_BMPBUTTON @@ -109,6 +112,16 @@ static void gtk_bmpbutton_release_callback( GtkWidget *WXUNUSED(widget), wxBitma IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton) +wxBitmapButtonBase::wxBitmapButtonBase() + : m_bmpNormal(), + m_bmpSelected(), + m_bmpFocus(), + m_bmpDisabled(), + m_marginX(0), + m_marginY(0) +{ +} + void wxBitmapButton::Init() { m_hasFocus = @@ -173,8 +186,7 @@ bool wxBitmapButton::Create( wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); - - SetBackgroundColour( parent->GetBackgroundColour() ); + InheritAttributes(); Show( TRUE );