Re: problem with status bar
- Date: Fri, 3 Aug 2007 14:16:55 -0300
- From: "Luiz Rafael Culik Guimaraes" <luiz@xxxxxxxxxxxxxxx>
- Subject: Re: problem with status bar
David
>
> If you pack a widget as first, it will appear first in the vbox.
> If you pack it last, it will apear last.
so the pack should be in this order
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER(hWnd), vbox);
if (bStatus)
{
statusbar = gtk_statusbar_new();
box = (GtkFixed*)gtk_fixed_new();
gtk_box_pack_start( GTK_BOX (vbox), (GtkWidget*)statusbar, TRUE, TRUE,
0);
gtk_box_reorder_child(GTK_BOX(vbox) statusbar,9999);
gtk_box_pack_end( GTK_BOX(vbox), (GtkWidget*)box, TRUE, TRUE, 0 );
}
else
{
box = (GtkFixed*)gtk_fixed_new();
gtk_box_pack_end( GTK_BOX(vbox), (GtkWidget*)box, TRUE, TRUE, 0 );
}
Regards
Luiz
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list