mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
Make gtk_launch_uri more robust
We were failing to launch the uri if we are on Wayland, but have no xdg_foreign protocol support. Fixes: #5152
This commit is contained in:
parent
4638f942b8
commit
a0db8a24c2
@ -127,9 +127,7 @@ gtk_show_uri_full (GtkWindow *parent,
|
|||||||
data->task = g_task_new (parent, cancellable, callback, user_data);
|
data->task = g_task_new (parent, cancellable, callback, user_data);
|
||||||
g_task_set_source_tag (data->task, gtk_show_uri);
|
g_task_set_source_tag (data->task, gtk_show_uri);
|
||||||
|
|
||||||
if (parent)
|
if (!parent || !gtk_window_export_handle (parent, window_handle_exported, data))
|
||||||
gtk_window_export_handle (parent, window_handle_exported, data);
|
|
||||||
else
|
|
||||||
window_handle_exported (parent, NULL, data);
|
window_handle_exported (parent, NULL, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user