[gnome-robots/arnaudb/wip/gtk4: 13/33] Adapt a method.



commit 866a7f9b1a74009681596e6009fde18f6d2b0e92
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 25 16:00:29 2020 +0200

    Adapt a method.

 src/gnome-robots.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index a175f94..efbe16a 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -201,12 +201,7 @@ scores_cb (GSimpleAction *action, GVariant *parameter, gpointer user_data)
 static void
 help_cb (GSimpleAction *action, GVariant *parameter, gpointer user_data)
 {
-  GError *error = NULL;
-
-  gtk_show_uri_on_window (GTK_WINDOW (window), "help:gnome-robots", gtk_get_current_event_time (), &error);
-  if (error)
-    g_warning ("Failed to show help: %s", error->message);
-  g_clear_error (&error);
+  gtk_show_uri (GTK_WINDOW (window), "help:gnome-robots", GDK_CURRENT_TIME);
 }
 
 static void


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