Now let's fire up Anjuta and design our UI. A Glade designer does not have GtkWebUI in its palette, so here is what we are going to do:
Create a new Vala project and call it
web-browser
. Use GtkBuilder for the UI.Open
web_browser.ui
with Glade designer by just double-clicking the file in the Project dock.Put a vertical
Box
object in the window with two items.Put another
Box
object, this time a horizontal one, on the top part of the verticalBox
object, leaving the bottom part empty. Split the horizontalBox
object into five elements by filling the Number of elements option with5
.Put a button on each empty box element, except the third one. On each button, activate the Stock button option and fill it with
gtk-go-back
,gtk-go-forward
,gtk-refresh
, andgtk-ok stock
buttons on each button respectively.Give the buttons names, use
btn_back
,btn_forward
,btn_refresh
, andbtn_go
. Put the name in each Name option of the button.