diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-21 22:34:36 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | c92b7d4224b9cef1d08373fcc28f7fbd96c64e6d (patch) | |
tree | 6eaa81528f6ec5152eccc475df7b4d8a769f3ea6 /gtk/gtktoolbutton.c | |
parent | 5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (diff) | |
download | gtk+-c92b7d4224b9cef1d08373fcc28f7fbd96c64e6d.tar.gz |
box: Remove fill child property
GtkWidget:halign and GtkWidget:valign are sufficient
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r-- | gtk/gtktoolbutton.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 6872f4b554..aaaa0c47a0 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -518,8 +518,8 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item) else box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL,0); if (icon) - gtk_box_pack_start (GTK_BOX (box), icon, TRUE); - gtk_box_pack_end (GTK_BOX (box), label, TRUE); + gtk_box_pack_start (GTK_BOX (box), icon); + gtk_box_pack_end (GTK_BOX (box), label); gtk_container_add (GTK_CONTAINER (button->priv->button), box); gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "image-button"); gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "text-button"); @@ -530,17 +530,17 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item) { box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); if (icon) - gtk_box_pack_start (GTK_BOX (box), icon, TRUE); + gtk_box_pack_start (GTK_BOX (box), icon); if (label) - gtk_box_pack_end (GTK_BOX (box), label, TRUE); + gtk_box_pack_end (GTK_BOX (box), label); } else { box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); if (icon) - gtk_box_pack_end (GTK_BOX (box), icon, TRUE); + gtk_box_pack_end (GTK_BOX (box), icon); if (label) - gtk_box_pack_start (GTK_BOX (box), label, TRUE); + gtk_box_pack_start (GTK_BOX (box), label); } gtk_container_add (GTK_CONTAINER (button->priv->button), box); gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "image-button"); |