Replace Gtk3.22 deprecated gtk_show_uri

This commit is contained in:
Robert Fewell 2017-07-09 09:31:51 +01:00 committed by Geert Janssens
parent ff93071608
commit 3bb33a2796

View File

@ -390,7 +390,11 @@ gnc_gnome_help (const char *file_name, const char *anchor)
uri = g_strconcat ("ghelp:", file_name, NULL);
DEBUG ("Attempting to opening help uri %s", uri);
#if GTK_CHECK_VERSION(3,22,0)
success = gtk_show_uri_on_window (NULL, uri, gtk_get_current_event_time (), &error);
#else
success = gtk_show_uri (NULL, uri, gtk_get_current_event_time (), &error);
#endif
g_free (uri);
if (success)
return;
@ -480,7 +484,11 @@ gnc_launch_assoc (const char *uri)
return;
DEBUG ("Attempting to open uri %s", uri);
#if GTK_CHECK_VERSION(3,22,0)
success = gtk_show_uri_on_window (NULL, uri, gtk_get_current_event_time (), &error);
#else
success = gtk_show_uri (NULL, uri, gtk_get_current_event_time (), &error);
#endif
if (success)
return;