I have a window with a vbox in it. The vbox has 5 non-homogenous slices. When the program starts I want to initially hide the 4th slice and have the vbox collapse so that the user wouldn't know its there. Then when they click the "More Details" button on the menubar, that 4th slice appears, pushing everything around it outward.
My problem is that when I hide the widget in the beginning, it leaves a big space for it. How can I get it to collapse? Here is my code:
int main(int argc, char *argv)
gtk_init (&argc, &argv);
gxml = glade_xml_new ("yaarbox.glade", NULL, NULL);
window = glade_xml_get_widget (gxml, "window");
details = glade_xml_get_widget(gxml, "frame_detail");
Obviously, I've simplified it quite a bit/removed all the callbacks. Every widget in the vbox is set to expand: no. I'm sure I'm doing something stupid wrong (this is my first foray into GTK+ programming).
I hope someone can help!