From f5fccd52d4d07aa4d4d4dae97248975c11dc958b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Oct 2011 16:44:24 +0000 Subject: [PATCH] Generate right click events for all kinds of items in wxAuiToolBar. Don't generate wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK for normal items only, they can be useful for other ones too. Note that this had been previously applied to 2.8 branch as r66926 but somehow wasn't applied to the trunk. Closes #10079. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibar.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index fab0b5d247..0d71b3162a 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -2679,15 +2679,12 @@ void wxAuiToolBar::OnRightUp(wxMouseEvent& evt) if (m_actionItem && hitItem == m_actionItem) { - if (hitItem->m_kind == wxITEM_NORMAL) - { - wxAuiToolBarEvent e(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, m_actionItem->m_toolId); - e.SetEventObject(this); - e.SetToolId(m_actionItem->m_toolId); - e.SetClickPoint(m_actionPos); - GetEventHandler()->ProcessEvent(e); - DoIdleUpdate(); - } + wxAuiToolBarEvent e(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, m_actionItem->m_toolId); + e.SetEventObject(this); + e.SetToolId(m_actionItem->m_toolId); + e.SetClickPoint(m_actionPos); + GetEventHandler()->ProcessEvent(e); + DoIdleUpdate(); } else { -- 2.50.0