diff options
author | nyamatongwe <unknown> | 2005-04-18 01:15:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-04-18 01:15:15 +0000 |
commit | 574ba0f2b6de26d0d571bb99ff62c4aa13e7d6d5 (patch) | |
tree | 8a419c4d8ea85436f234ec868b7f642230a9f53b /gtk/PlatGTK.cxx | |
parent | 3111626f7d86333b3d925f04cc096ebecdebd91a (diff) | |
download | scintilla-mirror-574ba0f2b6de26d0d571bb99ff62c4aa13e7d6d5.tar.gz |
Protect recent fix from being used on old GTK+ versions where
gtk_get_current_event_time not available.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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() { |