Skip to content

Commit

Permalink
set "application_name" and "prgname" to prevent warnings when using f…
Browse files Browse the repository at this point in the history
…ile dialogs
  • Loading branch information
jwahlstrand committed Aug 3, 2024
1 parent be7fcb3 commit 68322e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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.6.7"
version = "0.6.8"

[deps]
BitFlags = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35"
Expand Down
2 changes: 1 addition & 1 deletion src/GLib/loop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ GApplication(id = nothing) = G_.Application_new(id,ApplicationFlags_FLAGS_NONE)
"""
run(app::GApplication)
Calls `g_application_run`, starting the main loop. If the loop is already running, it will stop it before
Calls `g_application_run`, starting the main loop. If the loop is already running, this function will stop it and emit a warning before
starting the application loop.
"""
function run(app::GApplication)
Expand Down
4 changes: 4 additions & 0 deletions src/Gtk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function __init__()
G_.set_default_icon_name("julia")
end

# prevents warnings from being thrown when using file dialogs
GLib.G_.set_application_name("julia")
GLib.G_.set_prgname("julia")

isinteractive() && GLib.start_main_loop()

#@debug("Gtk4 initialized.")
Expand Down

0 comments on commit 68322e7

Please sign in to comment.