Viewport don't work



Please I am very clumsy: I have this code.....


adjust = gtk_adjustment_new (0.0, 0.0, 1.0, 0.1, 1.0, 1.0);
viewport = gtk_viewport_new  (GTK_ADJUSTMENT(adjust), NULL);
gtk_widget_set_usize(GTK_WIDGET(viewport),  130, 410);
gtk_viewport_set_hadjustment (GTK_VIEWPORT(viewport), GTK_ADJUSTMENT(adjust));
vbox = gtk_vbox_new (FALSE, 0);
  ( ... )
       /* I put many buttons in this box */
  ( ... )
gtk_container_add (GTK_CONTAINER(viewport), vbox2);



Now I have a button in the top of viewport, but I want that this button go to
bottom (move my vbox into viewport) but I don't know. Can I help me please?
Only I need some advice.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]