mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
ifdef-ed some FLTK 1.3.0 specific code.
This commit is contained in:
parent
89ec43af74
commit
b4ad2fb11b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user