Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
de3d71e0
Commit
de3d71e0
authored
Jun 05, 2015
by
Sumit Sahrawat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder arguments
All functions now accept a Button as their first argument.
parent
ba05744d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Button.hs
...y/ihaskell-widgets/src/IHaskell/Display/Widgets/Button.hs
+6
-6
No files found.
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Button.hs
View file @
de3d71e0
...
...
@@ -59,20 +59,20 @@ modify :: Button -> (Button -> IORef a) -> a -> IO ()
modify
b
attr
val
=
writeIORef
(
attr
b
)
val
-- | Set the button style
setButtonStyle
::
Button
Style
->
Button
->
IO
()
setButtonStyle
b
st
b
=
do
setButtonStyle
::
Button
->
ButtonStyle
->
IO
()
setButtonStyle
b
bst
=
do
modify
b
buttonStyle
bst
update
b
[
"button_style"
.=
bst
]
-- | Set the button label
setButtonLabel
::
Text
->
Button
->
IO
()
setButtonLabel
txt
b
=
do
setButtonLabel
::
Button
->
Text
->
IO
()
setButtonLabel
b
txt
=
do
modify
b
description
txt
update
b
[
"description"
.=
txt
]
-- | Set the button tooltip
setButtonTooltip
::
Text
->
Button
->
IO
()
setButtonTooltip
txt
b
=
do
setButtonTooltip
::
Button
->
Text
->
IO
()
setButtonTooltip
b
txt
=
do
modify
b
tooltip
txt
update
b
[
"tooltip"
.=
txt
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment