X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e78c1d7855d1fefcdbff0e093e21e5cf101ca604..89b4415803685b243946e4941522be8232621fa6:/src/gtk/bmpcbox.cpp?ds=inline diff --git a/src/gtk/bmpcbox.cpp b/src/gtk/bmpcbox.cpp index 88e4dcb9a6..0378a0a0df 100644 --- a/src/gtk/bmpcbox.cpp +++ b/src/gtk/bmpcbox.cpp @@ -32,14 +32,6 @@ #include "wx/gtk/private.h" -#ifdef __WXGTK24__ - #include "wx/gtk/win_gtk.h" - - #include - #include -#endif - - // ============================================================================ // implementation // ============================================================================ @@ -133,6 +125,7 @@ void wxBitmapComboBox::GTKCreateComboBoxWidget() m_entry = GTK_ENTRY( GTK_BIN(m_widget)->child ); gtk_entry_set_editable( m_entry, TRUE ); } + g_object_ref(m_widget); // This must be called as gtk_combo_box_entry_new_with_model adds // automatically adds one text column.