[gtk+/portal: 2/17] about dialog: Use gtk_show_uri_on_window



commit 66e2522c5a417f8c01dc0f554edd5e91bf050421
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 5 08:04:13 2016 -0400

    about dialog: Use gtk_show_uri_on_window

 gtk/gtkaboutdialog.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index d4187fa..45ac289 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]