mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 09:43:46 +01:00
Fix deprecation warning
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9bc80b7733
commit
2948580edd
@ -1020,7 +1020,11 @@ zathura_page_widget_popup_menu(GtkWidget* widget, GdkEventButton* event)
|
|||||||
|
|
||||||
/* attach and popup */
|
/* attach and popup */
|
||||||
gtk_menu_attach_to_widget(GTK_MENU(menu), widget, NULL);
|
gtk_menu_attach_to_widget(GTK_MENU(menu), widget, NULL);
|
||||||
|
#if GTK_CHECK_VERSION(3, 22, 0)
|
||||||
|
gtk_menu_popup_at_pointer(GTK_MENU(menu), (GdkEvent*) event);
|
||||||
|
#else
|
||||||
gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, event->button, event->time);
|
gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, event->button, event->time);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user