Skip to content

Commit

Permalink
Fix xalign and yalign properties of some widgets not being Int
Browse files Browse the repository at this point in the history
…but instead `Number`
  • Loading branch information
postsolar committed Feb 26, 2024
1 parent 072d786 commit 1d5e004
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Gtk/Button.purs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type GtkButtonProps r =
-- , relief ∷ ValueOrBinding Gtk.ReliefStyle
, useStockValueOrBinding Boolean
, useUnderlineValueOrBinding Boolean
, xalignValueOrBinding Number
, yalignValueOrBinding Number
, xalignValueOrBinding Int
, yalignValueOrBinding Int
| r
)

2 changes: 1 addition & 1 deletion src/Gtk/Entry.purs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type GtkEntryProps r =
, truncateMultilineBoolean
, visibilityBoolean
, widthCharsNumber
, xalignNumber
, xalignInt
| r
)

4 changes: 2 additions & 2 deletions src/Gtk/Label.purs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type GtkLabelProps r =
, widthCharsValueOrBinding Number
, wrapValueOrBinding Boolean
-- , wrapMode ∷ ValueOrBinding Pango.WrapMode
, xalignValueOrBinding Number
, yalignValueOrBinding Number
, xalignValueOrBinding Int
, yalignValueOrBinding Int
| r
)

4 changes: 2 additions & 2 deletions src/Gtk/Misc.purs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module Gtk.Misc where
import AGS.Binding (ValueOrBinding)

type GtkMiscProps r =
( xalignValueOrBinding Number
( xalignValueOrBinding Int
, xpadValueOrBinding Number
, yalignValueOrBinding Number
, yalignValueOrBinding Int
, ypadValueOrBinding Number
| r
)
Expand Down

0 comments on commit 1d5e004

Please sign in to comment.