summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-07-05 08:04:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-07-08 00:07:11 -0400
commite47957406d60345efa624dea6517f7d793fc1a13 (patch)
tree0a3fbe9a22b46b98449bb430c5dd0b1d9b4551dd /gtk/gtkaboutdialog.c
parentc6416aec748da82de04deaf75f58639af5096b44 (diff)
downloadgtk+-e47957406d60345efa624dea6517f7d793fc1a13.tar.gz
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
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index d4187fa459..45ac2899ed 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -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;