Skip to content

Commit

Permalink
shell: replace deprecated gtk_menu_popup function
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed May 10, 2018
1 parent 0fd2124 commit 510ea85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions shell/ev-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 510ea85

Please sign in to comment.