]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
fix for non precomp
[wxWidgets.git] / src / gtk / combobox.cpp
index fdb640143f81fe267f5e9ad5dc5c2ee216e35394..467a6ce586d376e556b3898a53e49ad74156d3bf 100644 (file)
 
 // We use GtkCombo which has been deprecated since GTK+ 2.3.0
 // in favour of GtkComboBox for <GTK2.4 runtime
-#include <gtk/gtkversion.h>
-#if defined(GTK_DISABLE_DEPRECATED) && GTK_CHECK_VERSION(2,3,0)
+// We also use GtkList
+#ifdef GTK_DISABLE_DEPRECATED
 #undef GTK_DISABLE_DEPRECATED
 #endif
 #include "wx/gtk/private.h"
 
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
@@ -573,7 +566,7 @@ void wxComboBox::Clear()
     {
         GtkComboBox* combobox = GTK_COMBO_BOX( m_widget );
         int i;
-        for (i = 0; i++; i < GetCount())
+        for (i = 0; i < GetCount(); i++)
             gtk_combo_box_remove_text( combobox, 0 );
     }
     else