Skip to content

Commit

Permalink
FEAT: GTK: adds float! support for progress and slider face.
Browse files Browse the repository at this point in the history
  • Loading branch information
qtxie committed Apr 13, 2020
1 parent bf69c38 commit 41c2470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/view/backends/gtk3/gui.reds
Original file line number Diff line number Diff line change
Expand Up @@ -1086,14 +1086,14 @@ change-data: func [
case [
all [
type = progress
TYPE_OF(data) = TYPE_PERCENT
any [TYPE_OF(data) = TYPE_PERCENT TYPE_OF(data) = TYPE_FLOAT]
][
f: as red-float! data
gtk_progress_bar_set_fraction widget f/value
]
all [
type = slider
TYPE_OF(data) = TYPE_PERCENT
any [TYPE_OF(data) = TYPE_PERCENT TYPE_OF(data) = TYPE_FLOAT]
][
f: as red-float! data
gtk_range_set_value widget f/value * 100.0
Expand Down

0 comments on commit 41c2470

Please sign in to comment.