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" 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