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/document-properties.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/document-properties.cpp')
| -rw-r--r-- | src/ui/dialog/document-properties.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 3d246f4cb..48e0042b4 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -564,21 +564,33 @@ void DocumentProperties::populate_linked_profiles_box() void DocumentProperties::external_scripts_list_button_release(GdkEventButton* event) { if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) { +#if GTKMM_CHECK_VERSION(3,22,0) + _ExternalScriptsContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); +#else _ExternalScriptsContextMenu.popup(event->button, event->time); +#endif } } void DocumentProperties::embedded_scripts_list_button_release(GdkEventButton* event) { if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) { +#if GTKMM_CHECK_VERSION(3,22,0) + _EmbeddedScriptsContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); +#else _EmbeddedScriptsContextMenu.popup(event->button, event->time); +#endif } } void DocumentProperties::linked_profiles_list_button_release(GdkEventButton* event) { if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) { +#if GTKMM_CHECK_VERSION(3,22,0) + _EmbProfContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event)); +#else _EmbProfContextMenu.popup(event->button, event->time); +#endif } } |
