aboutsummaryrefslogtreecommitdiff
path: root/src/menu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.cc')
-rw-r--r--src/menu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menu.cc b/src/menu.cc
index e032c189..37d78938 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -57,7 +57,7 @@ public:
int button () { return EventButton; };
void draw();
int handle(int e) {
- EventButton = event_button();
+ EventButton = Fl::event_button();
return Item::handle(e);
}
};
@@ -139,7 +139,7 @@ static void Menu_open_url_nw_cb(Widget* )
static void Menu_open_url_nt_cb(Widget* )
{
int focus = prefs.focus_new_tab ? 1 : 0;
- if (event_state(FL_SHIFT)) focus = !focus;
+ if (Fl::event_state(FL_SHIFT)) focus = !focus;
a_UIcmd_open_url_nt(popup_bw, popup_url, focus);
}
@@ -293,7 +293,7 @@ static void Menu_history_cb(Widget *wid, void *data)
// Middle button, open in a new window/tab
if (prefs.middle_click_opens_new_tab) {
int focus = prefs.focus_new_tab ? 1 : 0;
- if (event_state(FL_SHIFT)) focus = !focus;
+ if (Fl::event_state(FL_SHIFT)) focus = !focus;
a_UIcmd_open_url_nt(popup_bw, url, focus);
} else {
a_UIcmd_open_url_nw(popup_bw, url);