GTK4: show_uri() is gone

Use show_uri_on_window() instead of show_uri() for GTK+4, show_uri() is
not available.
This commit is contained in:
Rafael Kitover
2017-12-11 16:18:37 -08:00
committed by paulcor
parent 52f231c9ff
commit aceefac2c9

View File

@@ -2680,7 +2680,7 @@ bool
wxDoLaunchDefaultBrowser(const wxLaunchBrowserParams& params) wxDoLaunchDefaultBrowser(const wxLaunchBrowserParams& params)
{ {
#ifdef __WXGTK__ #ifdef __WXGTK__
#if GTK_CHECK_VERSION(3,90,0) #ifdef __WXGTK4__
if (gtk_show_uri_on_window((GtkWindow*)wxGetTopLevelGTK(), if (gtk_show_uri_on_window((GtkWindow*)wxGetTopLevelGTK(),
params.url.utf8_str(), GDK_CURRENT_TIME, NULL)) params.url.utf8_str(), GDK_CURRENT_TIME, NULL))
{ {