mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
model button: Small fixes
Make iconic model buttons work better.
This commit is contained in:
parent
4494884f9a
commit
0d59ece4a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user