#pragma implementation "statbmp.h"
#endif
-#include "wx/statbmp.h"
+#include "wx/defs.h"
#if wxUSE_STATBMP
+#include "wx/statbmp.h"
+
#include "gdk/gdk.h"
#include "gtk/gtk.h"
mask = m_bitmap.GetMask()->GetBitmap();
m_widget = gtk_pixmap_new( m_bitmap.GetPixmap(), mask );
- SetSizeOrDefault( size );
+ SetBestSize( size );
}
else
{
gtk_pixmap_set( GTK_PIXMAP(m_widget), m_bitmap.GetPixmap(), mask );
}
- SetSizeOrDefault();
+ SetBestSize(wxSize(bitmap.GetWidth(), bitmap.GetHeight()));
}
}
-wxSize wxStaticBitmap::DoGetBestSize() const
-{
- if ( m_bitmap.Ok() )
- return wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight());
- else
- return wxSize(16, 16); // completely arbitrary
-}
+#endif // wxUSE_STATBMP
-#endif