X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43a11e2a507fe0300ac28c0667bfbecdcc51f432..6eae1f7d48196dea9968c8e478f28a4166bd0fe9:/src/gtk/menu.cpp?ds=inline diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index f0dad01dcf..2a2e7bdc25 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -44,6 +44,11 @@ // we use normal item but with a special id for the menu title static const int wxGTK_TITLE_ID = -3; +// defined in window.cpp +#ifndef __WXGTK20__ + extern guint32 wxGtkTimeLastClick; +#endif + //----------------------------------------------------------------------------- // idle system //----------------------------------------------------------------------------- @@ -1535,7 +1540,7 @@ void gtk_pop_hide_callback( GtkWidget *WXUNUSED(widget), bool* is_waiting ) *is_waiting = FALSE; } -static void SetInvokingWindow( wxMenu *menu, wxWindow* win ) +void SetInvokingWindow( wxMenu *menu, wxWindow* win ) { menu->SetInvokingWindow( win ); @@ -1624,7 +1629,7 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y ) #ifdef __WXGTK20__ gtk_get_current_event_time() #else - gs_timeLastClick // the time of activation + wxGtkTimeLastClick // the time of activation #endif );