From: Václav Slavík Date: Sun, 24 Feb 2002 00:14:18 +0000 (+0000) Subject: made generic wxListCtrl work with well-behaved ports (wxGTK hack still in place) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ddba340ddfd7f4d49a3e0700e922bcbad0e46027 made generic wxListCtrl work with well-behaved ports (wxGTK hack still in place) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 5ddd7f99c3..850879e1ce 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3048,7 +3048,15 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) m_renameTimer->Stop(); m_lastOnSame = FALSE; +#ifdef __WXGTK__ + // FIXME: wxGTK generates bad sequence of events prior to doubleclick + // ("down, up, down, double, up" while other ports + // do "down, up, double, up"). We have to have this hack + // in place till somebody fixes wxGTK... if ( current == m_lineBeforeLastClicked ) +#else + if ( current == m_lineLastClicked ) +#endif { SendNotify( current, wxEVT_COMMAND_LIST_ITEM_ACTIVATED );