Skip to content

Commit

Permalink
small fixes to new examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Dec 10, 2023
1 parent 2b1a52b commit 2eff182
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This package builds on Gtk.jl but uses GObject introspection to support more of

Most of the code for GLib support (`GType`, `GValue`, `GObject`, etc.) was copied with minor changes from [Gtk.jl](https://github.com/JuliaGraphics/Gtk.jl). This includes integration of the GLib main loop with Julia's event loop.

Documentation for the master branch version of this package can be found [here](https://juliagtk.github.io/Gtk4.jl/dev/). Complete GTK documentation is available at [https://www.gtk.org/docs](https://www.gtk.org/docs).
Documentation for the master branch version of this package can be found [here](https://juliagtk.github.io/Gtk4.jl/dev/). Example code can be found [here](https://github.com/JuliaGtk/Gtk4.jl/tree/main/examples). Complete GTK documentation is available at [https://www.gtk.org/docs](https://www.gtk.org/docs).

## Package scope and alternatives

Expand Down
6 changes: 3 additions & 3 deletions examples/thread.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ btn = GtkButton("Start")
sp = GtkSpinner()
ent = GtkEntry(;hexpand=true)

ltp = Threads.threadpool()

grid = GtkGrid()
grid[1:2,1] = GtkLabel("The GTK loop is running in thread $(Threads.threadid()) ($ltp threadpool)")
lab = GtkLabel("")
grid[1:2,1] = lab
@idle_add lab.label = "The GTK loop is running in thread $(Threads.threadid()) ($(Threads.threadpool()) threadpool)"
grid[1,2] = btn
grid[2,2] = sp
grid[1:2,3] = ent
Expand Down
6 changes: 3 additions & 3 deletions examples/thread_timeout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ sp = GtkSpinner()
ent = GtkEntry(;hexpand=true)
label = GtkLabel("")

ltp = Threads.threadpool()

grid = GtkGrid()
grid[1:2,1] = GtkLabel("The GTK loop is running in thread $(Threads.threadid()) ($ltp threadpool)")
lab = GtkLabel("")
grid[1:2,1] = lab
@idle_add lab.label = "The GTK loop is running in thread $(Threads.threadid()) ($(Threads.threadpool()) threadpool)"
grid[1,2] = btn
grid[2,2] = sp
grid[1:2,3] = ent
Expand Down

0 comments on commit 2eff182

Please sign in to comment.