Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/GLib/loop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand All @@ -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[]
Expand All @@ -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
Expand Down
Loading