From 7fc06f31e15a242ca0737b5e109fdd4e31c5c371 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 30 Sep 2002 13:20:25 +0000 Subject: [PATCH] Removed hack from wxListCtrl that was required as long as wxGTK sent an incorrect sequence of mouse events for dclicks. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index ff71df4edf..8a939f3371 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3089,15 +3089,7 @@ 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 );