mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
about dialog: Use gtk_show_uri_on_window
This allows us to handle things slightly better in the portal case. https://bugzilla.gnome.org/show_bug.cgi?id=768499
This commit is contained in:
parent
c6416aec74
commit
e47957406d
@ -982,12 +982,9 @@ static gboolean
|
||||
gtk_about_dialog_activate_link (GtkAboutDialog *about,
|
||||
const gchar *uri)
|
||||
{
|
||||
GdkScreen *screen;
|
||||
GError *error = NULL;
|
||||
|
||||
screen = gtk_widget_get_screen (GTK_WIDGET (about));
|
||||
|
||||
if (!gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error))
|
||||
if (!gtk_show_uri_on_window (GTK_WINDOW (about), uri, gtk_get_current_event_time (), &error))
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user