]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
Commit FM's GTK+ native assert dialog code.
[wxWidgets.git] / src / gtk1 / combobox.cpp
index 67dd579b36c636bb0cd0f9f32974825537588af6..3e519a1bc0a9e15523b7714528052fdcee41e58f 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/settings.h"
+    #include "wx/textctrl.h"    // for wxEVT_COMMAND_TEXT_UPDATED
+    #include "wx/arrstr.h"
 #endif
 
-#include "wx/settings.h"
-#include "wx/arrstr.h"
-
-#include "wx/textctrl.h"    // for wxEVT_COMMAND_TEXT_UPDATED
-
 #include "wx/gtk1/private.h"
 
 //-----------------------------------------------------------------------------
@@ -285,7 +283,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
     gtk_signal_connect_after( GTK_OBJECT(combo->list), "select-child",
       GTK_SIGNAL_FUNC(gtk_combo_select_child_callback), (gpointer)this );
 
-    SetBestSize(size); // need this too because this is a wxControlWithItems
+    SetInitialSize(size); // need this too because this is a wxControlWithItems
 
     // This is required for tool bar support
 //    wxSize setsize = GetSize();