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:
parent
a89dc49609
commit
7d0dbcbdc7
2
PKGBUILD
2
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=()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue