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/dialog/objects.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/dialog/objects.cpp')
| -rw-r--r-- | src/ui/dialog/objects.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/dialog/objects.cpp b/src/ui/dialog/objects.cpp index 2be1f115f..6d2e884b0 100644 --- a/src/ui/dialog/objects.cpp +++ b/src/ui/dialog/objects.cpp @@ -779,7 +779,13 @@ bool ObjectsPanel::_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 + if (_tree.get_selection()->is_selected(path)) { return true; } |
