[gtk/new-style-menu: 1/2] model button: Small fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/new-style-menu: 1/2] model button: Small fixes
- Date: Wed, 5 Jun 2019 20:09:11 +0000 (UTC)
commit 713f53fd3243bfccf04661ede4291817d9d6959d
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 5 19:33:43 2019 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]