Horizontal And Vertical Box A Horizontal Box (gtk_hbox) allows placing items inside it horizontally (left-to-right or right-to-left). Here is an example. Assume that 'button1', 'button2' and 'button3' are push buttons. /* create a new horizontal box, make it non-homogeneous, */ /* and with 0 spacing between its contained widgets. */ GtkWidget* hbox = gtk_hbox_new(FALSE, 0); /* add it to the top-level window. */ gtk_container_add(GTK_CONTAINER(main_window), hbox); /* make it visible. */ gtk_widget_show(hbox); /* pack our buttons inside the box. the button will expand */ /* when the box is resized, will fill all available space */ /* in the box, and have 1 pixel of padding on each size. */ gtk_box_pack_start(GTK_BOX(hbox), button1, TRUE, TRUE, 1); gtk_box_pack_start(GTK_BOX(hbox), button2, TRUE, TRUE, 1); gtk_box_pack_start(GTK_BOX(hbox), button3, TRUE, TRUE, 1);