mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Fix GtkToolButton possibly being empty
With style BOTH_HORIZ the label would not be selected (if not marked "important") and when there's no icon, it would result in an empty button. Signed-off-by: Olivier Brunel <jjk@jjacky.com> https://bugzilla.gnome.org/show_bug.cgi?id=710134
This commit is contained in:
parent
07eafbaaa8
commit
48770fda30
@ -421,7 +421,7 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item)
|
||||
need_label = TRUE;
|
||||
}
|
||||
|
||||
if (style == GTK_TOOLBAR_ICONS && button->priv->icon_widget == NULL &&
|
||||
if (style != GTK_TOOLBAR_TEXT && button->priv->icon_widget == NULL &&
|
||||
button->priv->stock_id == NULL && button->priv->icon_name == NULL)
|
||||
{
|
||||
need_label = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user