From 5075322fc9b7fabc429c294ca9e8a00e9da69377 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Tue, 26 Dec 2017 22:54:27 +0000 Subject: GtkMM popup menu deprecation fixes --- src/ui/dialog/layers.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/dialog/layers.cpp') diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp index ed2babf80..2a59bac00 100644 --- a/src/ui/dialog/layers.cpp +++ b/src/ui/dialog/layers.cpp @@ -572,7 +572,12 @@ bool LayersPanel::_handleButtonEvent(GdkEventButton* event) int y = static_cast(event->y); if ( _tree.get_path_at_pos( x, y, path ) ) { _checkTreeSelection(); + +#if GTKMM_CHECK_VERSION(3,22,0) + _popupMenu.popup_at_pointer(reinterpret_cast(event)); +#else _popupMenu.popup(event->button, event->time); +#endif } } -- cgit v1.2.3