[gnome-boxes/replace-gtk-show-uri: 3/3] app: Replace deprecated Gtk.show_uri() calls




commit 7b4746be6b0ec1fd7daf1a43a1e881e2fe8bd8ee
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Apr 7 11:19:01 2021 +0200

    app: Replace deprecated Gtk.show_uri() calls
    
    Deprecated since Gtk 3.22

 src/app.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 4e69ee79..9aa74332 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -83,9 +83,7 @@ public App () {
         action = new GLib.SimpleAction ("help", null);
         action.activate.connect (() => {
             try {
-                Gtk.show_uri (main_window.get_screen (),
-                              "help:gnome-boxes",
-                              Gtk.get_current_event_time ());
+                Gtk.show_uri_on_window (main_window, "help:gnome-boxes", Gtk.get_current_event_time ());
             } catch (GLib.Error e) {
                 warning ("Failed to display help: %s", e.message);
             }


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