]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed mouse (and other?) events generation broken by recent changes (patch 1446205)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:12:18 +0000 (13:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2006 13:12:18 +0000 (13:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/listbox.cpp

index 151b027b34294d1930c3adb374c7235bb8e29234..754e6dad26b474dc2db6c832b433b0c705952f5e 100644 (file)
@@ -1061,8 +1061,9 @@ void wxListBox::ApplyToolTip( GtkTooltips *tips, const wxChar *tip )
 
 GtkWidget *wxListBox::GetConnectWidget()
 {
-    // return GTK_WIDGET(m_treeview);
-    return m_widget;
+    // the correct widget for listbox events (such as mouse clicks for example)
+    // is m_treeview, not the parent scrolled window
+    return GTK_WIDGET(m_treeview);
 }
 
 bool wxListBox::IsOwnGtkWindow( GdkWindow *window )