[gnome-screenshot/wip/exalm/refactor: 7/12] utils: Stop using gtk_show_uri()



commit 7dcc74b3efcbceedde1cf2f3b9519bee3540e27f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Apr 19 03:00:33 2020 +0500

    utils: Stop using gtk_show_uri()
    
    Replace with gtk_show_uri_on_window().
    
    Fix yet another deprecation.

 src/screenshot-utils.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index 26ca026..9b87cad 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -149,9 +149,10 @@ screenshot_display_help (GtkWindow *parent)
 {
   g_autoptr(GError) error = NULL;
 
-  gtk_show_uri (gtk_window_get_screen (parent),
-                "help:gnome-help/screen-shot-record",
-                gtk_get_current_event_time (), &error);
+  gtk_show_uri_on_window (parent,
+                          "help:gnome-help/screen-shot-record",
+                          gtk_get_current_event_time (),
+                          &error);
 
   if (error)
     screenshot_show_dialog (parent,


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