From 0d59ece4a4604063f6a60fb2efd1cff5bf895386 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 5 Jun 2019 19:33:43 +0000 Subject: [PATCH] model button: Small fixes Make iconic model buttons work better. --- gtk/gtkmodelbutton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 16cf8b1c75..25dbbe6748 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -370,6 +370,8 @@ update_visibility (GtkModelButton *button) gtk_widget_set_visible (button->image, has_icon && (button->iconic || !has_text)); gtk_widget_set_visible (button->label, has_text && (!button->iconic || !has_icon)); + gtk_widget_set_hexpand (button->image, has_icon && !has_text); + gtk_widget_set_hexpand (button->box, FALSE); } static void