[gnome-clocks] window: Don't call Gtk.show_uri_on_window() and Gtk.get_current_event_time()
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] window: Don't call Gtk.show_uri_on_window() and Gtk.get_current_event_time()
- Date: Fri, 7 Jan 2022 17:23:43 +0000 (UTC)
commit de1170f982c3d1d5d8fe055ea1cef62be5b623ea
Author: Yetizone <andreii lisita gmail com>
Date: Mon Jan 11 20:09:58 2021 +0200
window: Don't call Gtk.show_uri_on_window() and Gtk.get_current_event_time()
These functions are no longer available in GTK4
Instead use Gtk.show_uri() and Gdk.CURRENT_TIME
src/window.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index 4415cc88..78112f91 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -253,7 +253,7 @@ public class Window : Adw.ApplicationWindow {
private void on_help_activate () {
try {
- Gtk.show_uri_on_window (this, "help:gnome-clocks", Gtk.get_current_event_time ());
+ Gtk.show_uri (this, "help:gnome-clocks", Gdk.CURRENT_TIME);
} catch (Error e) {
warning (_("Failed to show help: %s"), e.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]