From 89c830a332ce1c7787a7e9e4d439e71d88b8039c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 4 Dec 2007 13:38:02 +0000 Subject: [PATCH] Context menu event from keyboard records the mouse position, not -1, -1, in line with wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 13 +++++++++---- src/gtk/window.cpp | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index dfac2d9424..332809ff58 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -93,16 +93,21 @@ Major new features in 2.8 release All (GUI): -- Added wxWindow::GetNextSibling() and GetPrevSibling() -- Support wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize() (Evgeniy Tarassov) +- Added wxWindow::GetNextSibling() and GetPrevSibling(). +- Support wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize() (Evgeniy Tarassov). - Ensure that wxGrid::AutoSizeColumn/Row() never sets column/row size - smaller than the minimal size + smaller than the minimal size. All (Unix): -- Fixed shared libraries to not depend on GStreamer when built with +- Fixed shared libraries do not depend on GStreamer when built with --enable-media; only wxMedia library depends on it now. +wxGTK: + +- Context menus invoked from the keyboard now show at the current mouse + position. + 2.8.7 ----- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 48f481aa9a..5b50919145 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1809,7 +1809,7 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win) static gboolean wxgtk_window_popup_menu_callback(GtkWidget*, wxWindowGTK* win) { - wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxPoint(-1, -1)); + wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxGetMousePosition()); event.SetEventObject(win); return win->GTKProcessEvent(event); }