summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/panel.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/widget/panel.cpp
parentInkview: GtkMM deprecation fixes (diff)
downloadinkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.tar.gz
inkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.zip
GtkMM popup menu deprecation fixes
Diffstat (limited to 'src/ui/widget/panel.cpp')
-rw-r--r--src/ui/widget/panel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index aea9b7e8e..cc17262af 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -83,7 +83,11 @@ void Panel::_popper(GdkEventButton* event)
{
if ( (event->type == GDK_BUTTON_PRESS) && (event->button == 3 || event->button == 1) ) {
if (_menu) {
+#if GTKMM_CHECK_VERSION(3,22,0)
+ _menu->popup_at_pointer(reinterpret_cast<GdkEvent *>(event));
+#else
_menu->popup(event->button, event->time);
+#endif
}
}
}