]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
guarding scrollbar
[wxWidgets.git] / src / gtk / combobox.cpp
index fb9623a2ba4da5ac4eb3deea1c17af2791800116..e5a8a75d6d01fad8b3fe80043040dd63caf0cd27 100644 (file)
@@ -172,7 +172,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
     g_signal_connect_after (m_widget, "changed",
                         G_CALLBACK (gtkcombobox_changed_callback), this);
 
     g_signal_connect_after (m_widget, "changed",
                         G_CALLBACK (gtkcombobox_changed_callback), this);
 
-    if ( gtk_check_version(2,10,0) )
+    if ( !gtk_check_version(2,10,0) )
     {
         g_signal_connect (m_widget, "notify::popup-shown",
                           G_CALLBACK (gtkcombobox_popupshown_callback), this);
     {
         g_signal_connect (m_widget, "notify::popup-shown",
                           G_CALLBACK (gtkcombobox_popupshown_callback), this);