mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace Gtk3.22 deprecated gtk_show_uri
This commit is contained in:
parent
ff93071608
commit
3bb33a2796
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user