diff options
Diffstat (limited to 'src/button.c')
| -rw-r--r-- | src/button.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/button.c b/src/button.c index b2155ed..2f279d4 100644 --- a/src/button.c +++ b/src/button.c @@ -17,9 +17,10 @@ void button_set_colors(Button *btn, Color background, Color foreground, Color st btn->stroke = stroke; } -void button_set_action(Button *btn, ButtonAction action) +void button_set_action(Button *btn, ButtonAction action, gpointer data) { btn->action = action; + btn->action_data = data; } void button_destroy(Button *btn) |
