summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbutton.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-07-19 14:10:48 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-07-19 14:10:48 +0000
commit27f361c238738497c4e9ee28e3fad621230e910e (patch)
treec44e952248c7e56e4febe3a25048226cc500e20a /gtk/gtktoolbutton.c
parent52de946c3d5013449c938101d5ebfc36d52a6820 (diff)
downloadgtk+-27f361c238738497c4e9ee28e3fad621230e910e.tar.gz
don't attempt to add a NULL icon to the box.
Sat Jul 19 16:26:02 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't attempt to add a NULL icon to the box.
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r--gtk/gtktoolbutton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index cb46fbdb1c..75b4cb4883 100644
--- a/gtk/gtktoolbutton.c
+++ b/gtk/gtktoolbutton.c
@@ -353,7 +353,8 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item)
case GTK_TOOLBAR_BOTH:
box = gtk_vbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (box), icon, TRUE, TRUE, 0);
+ if (icon)
+ gtk_box_pack_start (GTK_BOX (box), icon, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (button->priv->button), box);
break;