diff --git a/unix/button.c b/unix/button.c index 00a87f49..38713a16 100644 --- a/unix/button.c +++ b/unix/button.c @@ -33,6 +33,11 @@ void uiButtonSetText(uiButton *b, const char *text) gtk_button_set_label(b->button, text); } +void uiButtonSetMinSize(uiButton *b, int width, int height) +{ + gtk_widget_set_size_request(b->widget, width, height); +} + void uiButtonOnClicked(uiButton *b, void (*f)(uiButton *, void *), void *data) { b->onClicked = f;