X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/071a2d78147df569d57b1ef138ab126a586b594d..2a31049201e9c1ff9f515eb9d144ae392f4b4e5a:/src/gtk1/listbox.cpp?ds=sidebyside diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index 54d5f9edfd..b3f0b65c4a 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -26,9 +26,9 @@ #include "wx/tooltip.h" #endif -#include "gdk/gdk.h" -#include "gtk/gtk.h" -#include "gdk/gdkkeysyms.h" +#include +#include +#include //----------------------------------------------------------------------------- // idle system @@ -190,7 +190,7 @@ gtk_listbox_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_event, wxLis } #if wxUSE_CHECKLISTBOX - if ((gdk_event->keyval != ' ') && (listbox->m_hasCheckBoxes) && (!ret)) + if ((gdk_event->keyval == ' ') && (listbox->m_hasCheckBoxes) && (!ret)) { int sel = listbox->GtkGetIndex( widget );