]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
speed up reading wxFileConfig from wxInputStream by factors of 3.5, 20 and 7 for...
[wxWidgets.git] / src / gtk / choice.cpp
index 86c9a171910caec3cf723581798551d2519d97f4..69ca48117405b9041650a3cbf8c024edf6572967 100644 (file)
@@ -94,8 +94,6 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
                        int n, const wxString choices[],
                        long style, const wxValidator& validator, const wxString &name )
 {
-    m_needParent = true;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
@@ -375,6 +373,8 @@ void wxChoice::SetString(unsigned int n, const wxString& str)
             wxASSERT_MSG( label != NULL , wxT("wxChoice: invalid label") );
 
             gtk_label_set_text( label, wxGTK_CONV( str ) );
+            
+            InvalidateBestSize();
 
             return;
         }