]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/bmpbuttn.cpp
speeding up rectangle drawing by using specific methods, needs 40% less time
[wxWidgets.git] / src / gtk / bmpbuttn.cpp
index a99810f993b845a6f2088c984c7346792f64a408..55ca28b5c2ed658a095622477b37fe544f76ed64 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "wx/bmpbuttn.h"
 
 
 #include "wx/bmpbuttn.h"
 
-IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton,wxButton)
-
 bool wxBitmapButton::Create(wxWindow *parent,
                             wxWindowID id,
                             const wxBitmap& bitmap,
 bool wxBitmapButton::Create(wxWindow *parent,
                             wxWindowID id,
                             const wxBitmap& bitmap,
@@ -25,14 +23,6 @@ bool wxBitmapButton::Create(wxWindow *parent,
                             const wxValidator& validator,
                             const wxString& name)
 {
                             const wxValidator& validator,
                             const wxString& name)
 {
-    // we use wxBU_NOTEXT to let the base class Create() know that we are not
-    // going to show the label -- this is a hack, but like this it can support
-    // bitmaps with all GTK+ versions, not just 2.6+ which support both labels
-    // and bitmaps
-    //
-    // and we also use wxBU_EXACTFIT to avoid being resized up to the standard
-    // button size as this doesn't make sense for bitmap buttons which are not
-    // standard anyhow
     if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
                                      validator, name) )
         return false;
     if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
                                      validator, name) )
         return false;