]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clrpicker.cpp
better fix for keeping m_pos in sync
[wxWidgets.git] / src / gtk / clrpicker.cpp
index 672a8593cb3afcbcd9afd91ffb2a42f1e8230db3..a8ed5ef927734835a2a8544a3b834ce197dd2c34 100644 (file)
@@ -62,6 +62,7 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
     if (!gtk_check_version(2,4,0))
     {
         m_needParent = true;
+        m_acceptsFocus = true;
 
         if (!PreCreation( parent, pos, size ) ||
             !wxControl::CreateBase(parent, id, pos, size, style, validator, name))
@@ -82,7 +83,7 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
         m_parent->DoAddChild( this );
 
         PostCreation(size);
-        SetBestSize(size);
+        SetInitialSize(size);
     }
     else
         return wxGenericColourButton::Create(parent, id, col, pos, size,