]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
fixed another place where wxString was used as bool
[wxWidgets.git] / src / gtk / choice.cpp
index 737522f7ada89e092399945b7e55b1d5aa8c5a39..b159c5e9841b06e3ceee640c2812ca6792ed80bc 100644 (file)
@@ -98,9 +98,6 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
                        long style, const wxValidator& validator, const wxString &name )
 {
     m_needParent = true;
-#if (GTK_MINOR_VERSION > 0)
-    m_acceptsFocus = true;
-#endif
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
@@ -133,7 +130,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation(size);
-    SetBestSize(size); // need this too because this is a wxControlWithItems
+    SetInitialSize(size); // need this too because this is a wxControlWithItems
 
     return true;
 }