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 <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-10-31 07:42:28 -04:00
parent a89dc49609
commit 7d0dbcbdc7
2 changed files with 2 additions and 2 deletions

View File

@ -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=()

View File

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