]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/fontpicker.cpp
fix for longlongHash for architectures where sizeof(long long) == sizeof(long)
[wxWidgets.git] / src / gtk / fontpicker.cpp
index 27d8bb19bfc1a3ce19035eeed8b50f6c2710e9bb..eda8022cc19a7c96f09b5f4854e5812a95a0c7af 100644 (file)
@@ -61,6 +61,7 @@ bool wxFontButton::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))
@@ -94,7 +95,7 @@ bool wxFontButton::Create( wxWindow *parent, wxWindowID id,
         m_parent->DoAddChild( this );
 
         PostCreation(size);
-        SetBestSize(size);
+        SetInitialSize(size);
     }
     else
         return wxGenericFontButton::Create(parent, id, initial, pos, size,