From 574ba0f2b6de26d0d571bb99ff62c4aa13e7d6d5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 18 Apr 2005 01:15:15 +0000 Subject: Protect recent fix from being used on old GTK+ versions where gtk_get_current_event_time not available. --- gtk/PlatGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index e7dab2327..bf360f2c2 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -2343,8 +2343,12 @@ void Menu::Show(Point pt, Window &) { if ((pt.y + requisition.height) > screenHeight) { pt.y = screenHeight - requisition.height; } +#if GTK_MAJOR_VERSION >= 2 gtk_item_factory_popup(factory, pt.x - 4, pt.y - 4, 3, gtk_get_current_event_time()); +#else + gtk_item_factory_popup(factory, pt.x - 4, pt.y - 4, 3, 0); +#endif } ElapsedTime::ElapsedTime() { -- cgit v1.2.3