]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/menu.cpp
Added wxGetMouseState which returns the current state of the mouse.
[wxWidgets.git] / src / gtk1 / menu.cpp
index f0dad01dcfe8962984494eb891bfd0f599f10c9d..2a2e7bdc2599ce4888b55b32b53e8471334c585d 100644 (file)
 // 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
                 );