[swell-foop/arnaudb/wip/gtk4: 7/28] Adapt a method.



commit 7f6b479e4333536f77d92adb3a5d949f0635a104
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue May 12 21:29:46 2020 +0200

    Adapt a method.

 src/swell-foop.vala | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index 1b330a8..9e553d6 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -79,14 +79,7 @@ public class SwellFoop : Gtk.Application
 
     private inline void help_cb (/* SimpleAction action, Variant? variant */)
     {
-        try
-        {
-            Gtk.show_uri_on_window (window, "help:swell-foop", Gtk.get_current_event_time ());
-        }
-        catch (Error e)
-        {
-            warning ("Failed to show help: %s", e.message);
-        }
+        Gtk.show_uri (window, "help:swell-foop", Gdk.CURRENT_TIME);
     }
 
     private inline void about_cb (/* SimpleAction action, Variant? variant */)


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