]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/choice.cpp
aui docking works well on systems with solid window dragging turned off
[wxWidgets.git] / src / gtk1 / choice.cpp
index 80300657bbfa1214dc04d37b67b654c1dce506c1..9b03f45cfe92c6f9fce2d140be4d4f5ca378e2e6 100644 (file)
 #if wxUSE_CHOICE
 
 #include "wx/choice.h"
-#include "wx/arrstr.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/arrstr.h"
+#endif
 
 #include "wx/gtk1/private.h"
 
@@ -133,7 +136,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
 
     GtkWidget *menu = gtk_menu_new();
 
-    for (unsigned int i = 0; i < n; i++)
+    for (unsigned int i = 0; i < (unsigned int)n; i++)
     {
         GtkAddHelper(menu, i, choices[i]);
     }
@@ -143,7 +146,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;
 }