X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a93109d5926130130a73cb77272887dad4814521..1e3698e55d7ee45267b69fa8ed5f94886ad47be9:/src/gtk1/statbmp.cpp?ds=sidebyside diff --git a/src/gtk1/statbmp.cpp b/src/gtk1/statbmp.cpp index 69b6b571d6..30431837bf 100644 --- a/src/gtk1/statbmp.cpp +++ b/src/gtk1/statbmp.cpp @@ -4,7 +4,7 @@ // Author: Robert Roebling // Id: $Id$ // Copyright: (c) 1998 Robert Roebling -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -13,6 +13,11 @@ #include "wx/statbmp.h" +#if wxUSE_STATBMP + +#include "gdk/gdk.h" +#include "gtk/gtk.h" + //----------------------------------------------------------------------------- // wxStaticBitmap //----------------------------------------------------------------------------- @@ -57,9 +62,7 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi m_widget = gtk_label_new( "Bitmap" ); } - m_parent->AddChild( this ); - - (m_parent->m_insertCallback)( m_parent, this ); + m_parent->DoAddChild( this ); PostCreation(); @@ -79,3 +82,5 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap ) gtk_pixmap_set( GTK_PIXMAP(m_widget), m_bitmap.GetPixmap(), mask ); } } + +#endif