summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@aquarius>1998-03-21 07:46:04 +0000
committerRadek Doulik <rodo@src.gnome.org>1998-03-21 07:46:04 +0000
commit0328873baf3adc0495466084200a88b1b8f54113 (patch)
tree7f329dd1a6a5026585cd5db93ec3dcb8c1094356 /gtk/gtktoolbar.c
parentbabfb28c3c6227c26e291f387cb18b251a954070 (diff)
downloadgdk-pixbuf-0328873baf3adc0495466084200a88b1b8f54113.tar.gz
changed packing in toolbar elements, so texts are always at the bottom
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius> * gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing in toolbar elements, so texts are always at the bottom
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index f22f59a2f..f11a80779 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -787,22 +787,22 @@ gtk_toolbar_insert_element (GtkToolbar *toolbar,
gtk_container_add (GTK_CONTAINER (child->widget), vbox);
gtk_widget_show (vbox);
- if (icon)
- {
- child->icon = GTK_WIDGET (icon);
- gtk_box_pack_start (GTK_BOX (vbox), child->icon, FALSE, FALSE, 0);
- if (toolbar->style != GTK_TOOLBAR_TEXT)
- gtk_widget_show (child->icon);
- }
-
if (text)
{
child->label = gtk_label_new (text);
- gtk_box_pack_start (GTK_BOX (vbox), child->label, FALSE, FALSE, 0);
+ gtk_box_pack_end (GTK_BOX (vbox), child->label, FALSE, FALSE, 0);
if (toolbar->style != GTK_TOOLBAR_ICONS)
gtk_widget_show (child->label);
}
+ if (icon)
+ {
+ child->icon = GTK_WIDGET (icon);
+ gtk_box_pack_end (GTK_BOX (vbox), child->icon, FALSE, FALSE, 0);
+ if (toolbar->style != GTK_TOOLBAR_TEXT)
+ gtk_widget_show (child->icon);
+ }
+
gtk_widget_show (child->widget);
break;