From b4ad2fb11b096ba9a580fff5fb5b84cd6d670189 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 23 Aug 2012 02:29:27 +0000 Subject: [PATCH] ifdef-ed some FLTK 1.3.0 specific code. --- ede-panel/applets/start-menu/StartMenu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ede-panel/applets/start-menu/StartMenu.cpp b/ede-panel/applets/start-menu/StartMenu.cpp index 8c3ee4f..b324f4d 100644 --- a/ede-panel/applets/start-menu/StartMenu.cpp +++ b/ede-panel/applets/start-menu/StartMenu.cpp @@ -185,7 +185,11 @@ void StartMenu::popup(void) { redraw(); Fl_Widget *mb = this; + +#if (FL_MAJOR_VERSION >= 1) && (FL_MINOR_VERSION >= 3) Fl::watch_widget_pointer(mb); +#endif + if(!box() || type()) m = menu()->popup(Fl::event_x(), Fl::event_y(), label(), mvalue(), this); else @@ -193,7 +197,10 @@ void StartMenu::popup(void) { picked(m); pressed_menu_button = 0; + +#if (FL_MAJOR_VERSION >= 1) && (FL_MINOR_VERSION >= 3) Fl::release_widget_pointer(mb); +#endif menu_opened = false; #ifdef EDE_PANEL_MENU_AUTOUPDATE