summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/layers.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-12-26 22:54:27 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-12-26 22:54:27 +0000
commit5075322fc9b7fabc429c294ca9e8a00e9da69377 (patch)
treedd1f02bb4209b273401c95b7be57904c675f64d6 /src/ui/dialog/layers.cpp
parentInkview: GtkMM deprecation fixes (diff)
downloadinkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.tar.gz
inkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.zip
GtkMM popup menu deprecation fixes
Diffstat (limited to 'src/ui/dialog/layers.cpp')
-rw-r--r--src/ui/dialog/layers.cpp5
1 files changed, 5 insertions, 0 deletions
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<int>(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<GdkEvent *>(event));
+#else
_popupMenu.popup(event->button, event->time);
+#endif
}
}