Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #454 from JuliaGraphics/sd/windows
Browse files Browse the repository at this point in the history
Usage of Gtk on windows needs a warning
  • Loading branch information
jonathanBieler authored Nov 28, 2019
2 parents 97b6103 + 1dcd204 commit cfcfdf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/events.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ function __init__()
(Ptr{Nothing}, Ptr{Nothing}, Ptr{UInt8}, Ptr{Nothing}, Ptr{UInt8}, Ptr{GError}),
C_NULL, C_NULL, "Julia Gtk Bindings", C_NULL, C_NULL, error_check)
end


if Sys.iswindows()
@warn "You are using Gtk on Windows which is currently buggy. Expect your REPL/IDE and anything depending on task switches become sluggish."
end
# if g_main_depth > 0, a glib main-loop is already running,
# so we don't need to start a new one
if ccall((:g_main_depth, GLib.libglib), Cint, ()) == 0
Expand Down

0 comments on commit cfcfdf5

Please sign in to comment.