From 7d0dbcbdc79f2962ad5aba782d28353ac1f83b34 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 31 Oct 2016 07:42:28 -0400 Subject: [PATCH] gui/view: Replace gtk_menu_popup() with gtk_menu_popup_at_pointer() The function gtk_menu_popup() is deprecated as of Gtk 3.22, so replace it with the simplified popup_at_pointer() function. Signed-off-by: Anna Schumaker --- PKGBUILD | 2 +- gui/view.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 482477b2..c77fc214 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgdesc="A simple GTK+ and GStreamer based music player." url="http://www.nowheycreamery.com/" arch=('x86_64' 'i686' 'armv7h') license=('GPL2') -depends=('gtkmm3>=3.16' 'gstreamer' 'gst-plugins-base' 'taglib' 'libmusicbrainz5' 'libcoverart') +depends=('gtk3>=3.22' 'gstreamer' 'gst-plugins-base' 'taglib' 'libmusicbrainz5' 'libcoverart') optdepends=('gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly') makedepends=('cmake') conflicts=() diff --git a/gui/view.c b/gui/view.c index 1356c74d..f7c3c027 100644 --- a/gui/view.c +++ b/gui/view.c @@ -391,7 +391,7 @@ bool __view_button_press(GtkTreeView *treeview, GdkEventButton *event, else gtk_widget_show_all(GTK_WIDGET(other)); - gtk_menu_popup(menu, NULL, NULL, NULL, NULL, event->button, event->time); + gtk_menu_popup_at_pointer(menu, (GdkEvent *)event); return true; }