X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc0c395d837af5097f3fb52bdc37a1faaa33869b..f7732fa59a48ada168c88ccd004eca3c848d8a05:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index fa22ff516e..53bf0da0d8 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1643,6 +1643,8 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win) wxMouseEvent event(wxEVT_MOUSEWHEEL); InitMouseEvent(win, event, gdk_event); + + // FIXME: Get these values from GTK or GDK event.m_linesPerAction = 3; event.m_wheelDelta = 120; if (gdk_event->direction == GDK_SCROLL_UP) @@ -1659,7 +1661,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(), wxGetMousePosition()); + wxContextMenuEvent event(wxEVT_CONTEXT_MENU, win->GetId(), wxPoint(-1, -1)); event.SetEventObject(win); return win->GTKProcessEvent(event); } @@ -2230,7 +2232,7 @@ bool wxWindowGTK::Create( wxWindow *parent, wxBorder border = GetBorder(style); style &= ~wxBORDER_MASK; style |= border; - + if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) {