diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-12-26 22:54:27 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-12-26 22:54:27 +0000 |
| commit | 5075322fc9b7fabc429c294ca9e8a00e9da69377 (patch) | |
| tree | dd1f02bb4209b273401c95b7be57904c675f64d6 /src/ui/tools/tool-base.cpp | |
| parent | Inkview: GtkMM deprecation fixes (diff) | |
| download | inkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.tar.gz inkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.zip | |
GtkMM popup menu deprecation fixes
Diffstat (limited to 'src/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 79e1cbc10..83a084a60 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -1126,10 +1126,15 @@ void sp_event_root_menu_popup(SPDesktop *desktop, SPItem *item, GdkEvent *event) switch (event->type) { case GDK_BUTTON_PRESS: +#if GTKMM_CHECK_VERSION(3,22,0) + case GDK_KEY_PRESS: + CM->popup_at_pointer(event); +#else CM->popup(event->button.button, event->button.time); break; case GDK_KEY_PRESS: CM->popup(0, event->key.time); +#endif break; default: break; |
