Skip to content

Commit

Permalink
Fix task-scheduling conflict in Gtk call (#34)
Browse files Browse the repository at this point in the history
Unfortunately I don't have a code-test reproducing the problem,
but ImageView was able to trigger the same error described in
JuliaGraphics/Gtk.jl#368.
This robustly fixes it.
  • Loading branch information
timholy authored Jun 18, 2022
1 parent 51d8e09 commit 2bfcfe5
Show file tree
Hide file tree
Showing 2 changed files with 2 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 = "GtkObservables"
uuid = "8710efd8-4ad6-11eb-33ea-2d5ceb25a41c"
version = "1.2.3"
version = "1.2.4"

[deps]
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175"
Expand Down
2 changes: 1 addition & 1 deletion src/widgets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function Base.setindex!(s::Slider, (range,value)::Tuple{AbstractRange, Any})
Gtk.G_.lower(adj, first(range))
Gtk.G_.upper(adj, last(range))
Gtk.G_.step_increment(adj, step(range))
Gtk.G_.value(widget(s), value)
Gtk.@sigatom Gtk.G_.value(widget(s), value)
end
Base.setindex!(s::Slider, range::AbstractRange) = setindex!(s, (range, s[]))

Expand Down

2 comments on commit 2bfcfe5

@timholy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/62611

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.4 -m "<description of version>" 2bfcfe5a39d0fd34db745d142450b1879fd32ff4
git push origin v1.2.4

Please sign in to comment.