From 661fb6dae8027ad53a819cacf0f1eb6e6f38a4d6 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Sep 03 2018 15:44:01 +0000 Subject: Fix gtk compatibility for gtk_show_uri --- diff --git a/synfig-studio/src/gui/app.cpp b/synfig-studio/src/gui/app.cpp index 2f69c27..c76e0d9 100644 --- a/synfig-studio/src/gui/app.cpp +++ b/synfig-studio/src/gui/app.cpp @@ -3372,9 +3372,13 @@ App::dialog_message_3b(const std::string &message, static bool try_open_uri(const std::string &uri) { +#ifdef GTK_CHECK_VERSION(3, 22, 0) return gtk_show_uri_on_window( App::main_window ? App::main_window->gobj() : NULL, uri.c_str(), GDK_CURRENT_TIME, NULL ); +#else + return gtk_show_uri(NULL, uri.c_str(), GDK_CURRENT_TIME, NULL); +#endif } void