Skip to content

Commit

Permalink
allow Gtk4 v0.7 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand authored Sep 23, 2024
1 parent f82a240 commit c010e35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ImageView"
uuid = "86fae568-95e7-573e-a6b2-d8a6b900c9ef"
author = ["Tim Holy <[email protected]"]
version = "0.12.5"
version = "0.12.6"

[deps]
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
Expand All @@ -24,7 +24,7 @@ Cairo = "0.6, 0.7, 0.8, 1"
Compat = "3, 4"
Graphics = "0.2, 0.3, 0.4, 1"
GtkObservables = "2.1"
Gtk4 = "0.6.2"
Gtk4 = "0.6.2, 0.7"
ImageBase = "0.1"
ImageCore = "0.9, 0.10"
ImageMetadata = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion src/contrast_gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function contrast_gui(enabled::Observable{Bool}, hist::Observable, clim::Observa
end
updateclim = map(smin, smax) do cmin, cmax
# if min/max is outside the current range, update the sliders
adj = Gtk4.GtkAdjustment(widget(cgui["slider_min"]))
adj = Gtk4.adjustment(widget(cgui["slider_min"]))
rmin, rmax = Gtk4.G_.get_lower(adj), Gtk4.G_.get_upper(adj)
if cmin < rmin || cmax > rmax || cmax-cmin < Δ
# Also, don't cross the sliders
Expand Down

0 comments on commit c010e35

Please sign in to comment.