]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
fix to last custom draw fix: only leave space for the image in the first column
[wxWidgets.git] / src / gtk / choice.cpp
index 8765445a98351a98d897b61d215f5ea21708897e..7d0df1ca0d2c3305ab11bb8bac0431ddfe4af788 100644 (file)
 #include "wx/choice.h"
 #include "wx/arrstr.h"
 
+// FIXME: We use GtkOptionMenu which has been deprecated since GTK+ 2.3.0 in
+// favour of GtkComboBox.
+// Later use GtkComboBox if GTK+ runtime version is new enough.
+#include <gtk/gtkversion.h>
+#if defined(GTK_DISABLE_DEPRECATED) && GTK_CHECK_VERSION(2,3,0)
+#undef GTK_DISABLE_DEPRECATED
+#endif
+
 #include "wx/gtk/private.h"
 
 //-----------------------------------------------------------------------------