From 5075322fc9b7fabc429c294ca9e8a00e9da69377 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Tue, 26 Dec 2017 22:54:27 +0000 Subject: GtkMM popup menu deprecation fixes --- src/ui/dialog/document-properties.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui/dialog/document-properties.cpp') 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(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(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(event)); +#else _EmbProfContextMenu.popup(event->button, event->time); +#endif } } -- cgit v1.2.3