X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01111366c9b4ea40eee7f4b13ddfe6f6b9f886db..5db1a502b4bf38f36a14c1377618d9eaae4c8e79:/src/gtk1/bmpbuttn.cpp?ds=sidebyside diff --git a/src/gtk1/bmpbuttn.cpp b/src/gtk1/bmpbuttn.cpp index df7d7f6a1a..431e677569 100644 --- a/src/gtk1/bmpbuttn.cpp +++ b/src/gtk1/bmpbuttn.cpp @@ -2,7 +2,7 @@ // Name: bmpbuttn.cpp // Purpose: // Author: Robert Roebling -// Id: $id$ +// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -85,6 +85,8 @@ bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &b PostCreation(); + SetBackgroundColour( parent->GetBackgroundColour() ); + Show( TRUE ); return TRUE; @@ -100,16 +102,22 @@ void wxBitmapButton::SetDefault(void) void wxBitmapButton::SetLabel( const wxString &label ) { + wxCHECK_RET( m_widget != NULL, "invalid button" ); + wxControl::SetLabel( label ); } wxString wxBitmapButton::GetLabel(void) const { + wxCHECK_MSG( m_widget != NULL, "", "invalid button" ); + return wxControl::GetLabel(); } void wxBitmapButton::SetBitmapLabel( const wxBitmap& bitmap ) { + wxCHECK_RET( m_widget != NULL, "invalid button" ); + m_bitmap = bitmap; if (!m_bitmap.Ok()) return; @@ -122,6 +130,7 @@ void wxBitmapButton::SetBitmapLabel( const wxBitmap& bitmap ) gtk_pixmap_set( g_pixmap, m_bitmap.GetPixmap(), mask ); } - - +void wxBitmapButton::ApplyWidgetStyle() +{ +}