From c0d88ee3b91480f871f06fc7e4b2b7050d4ffddf Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Sun, 1 Mar 2026 07:16:43 -0500 Subject: [PATCH 1/2] fix version logic --- src/GLib/loop.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GLib/loop.jl b/src/GLib/loop.jl index 0ef4c329..ea87c1dd 100644 --- a/src/GLib/loop.jl +++ b/src/GLib/loop.jl @@ -75,7 +75,7 @@ Related GTK function: [`g_source_remove`()]($(gtkdoc_func_url("glib","source_rem """ g_source_remove(id) = G_.source_remove(id) -const g_main_running = Ref{Bool}(VERSION <= v"1.12") +const g_main_running = Ref{Bool}(VERSION < v"1.13-beta2") function iterate_loop(t) if !g_main_running[] @@ -88,7 +88,7 @@ end glib_main() = g_sigatom() do # In Julia 1.13 the REPL locks up when we run the loop in a parallel task. # This approach probably has worse performance, but at least the REPL works. - @static if VERSION > v"1.12" + @static if VERSION >= v"1.13-beta2" global loop_timer = Timer(iterate_loop, 0.002; interval=0.002) else while g_main_running[] @@ -105,7 +105,7 @@ Return true if the default GLib main event loop is running. Related GTK function: [`g_main_depth`()]($(gtkdoc_func_url("glib","main_depth"))) """ function is_loop_running() - @static if VERSION > v"1.12" + @static if VERSION >= v"1.13-beta2" return g_main_running[] else return G_.main_depth() != 0 From 4e7ec09f0a8446afae3d216ef5deefcd2806b2d3 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Thu, 5 Mar 2026 07:03:46 -0500 Subject: [PATCH 2/2] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 82dadb30..56240bc6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Gtk4" uuid = "9db2cae5-386f-4011-9d63-a5602296539b" -version = "0.7.12" +version = "0.7.13" [deps] BitFlags = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35"