summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-04 23:24:06 +0200
committerraveit65 <[email protected]>2018-05-10 22:45:31 +0200
commit510ea85afc00c6f40da752adb4827854d0f98273 (patch)
treed6182cb5d405485bcaed262c1ba36281ddcfd58f /shell
parent0fd21246a8cc827150dc59244bb419fe594a1e42 (diff)
downloadatril-510ea85afc00c6f40da752adb4827854d0f98273.tar.bz2
atril-510ea85afc00c6f40da752adb4827854d0f98273.tar.xz
shell: replace deprecated gtk_menu_popup function
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index a83cae31..95383b53 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5577,9 +5577,8 @@ view_menu_popup_cb (EvView *view,
if (!has_annot)
view_menu_annot_popup (ev_window, NULL);
- gtk_menu_popup (GTK_MENU (ev_window->priv->view_popup),
- NULL, NULL, NULL, NULL,
- 3, gtk_get_current_event_time ());
+ gtk_menu_popup_at_pointer (GTK_MENU (ev_window->priv->view_popup),
+ NULL);
return TRUE;
}
@@ -5602,10 +5601,8 @@ attachment_bar_menu_popup_cb (EvSidebarAttachments *attachbar,
popup = ev_window->priv->attachment_popup;
- gtk_menu_popup (GTK_MENU (popup), NULL, NULL,
- NULL, NULL,
- 3, gtk_get_current_event_time ());
-
+ gtk_menu_popup_at_pointer (GTK_MENU (popup),
+ NULL);
return TRUE;
}