From ecdf31eb5eeca6ca5d96236d667281ac101c2fe0 Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Tue, 24 Mar 2020 21:37:49 +0200 Subject: [PATCH] button: implement uiButtonSetMinSize for GTK3 --- unix/button.c | 5 +++++ 1 file changed, 5 insertions(+) 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;