Part 6a

Gtk ComboBox

Gtk ComboBox

  1. Start a new Glade project and add a Toplevel Window and a Vertical Box with two items. In the top add a Combo Box and in the bottom add a Label.

    Your project should look like this now.

    images/glade-06-01.png
  2. Select combobox1 from the tree and in the Signals tab add the on_combobox1_changed handler to the GtkComboBox changed signal. In the Packing tab change Expand: to No.

    Your project should look like this now.

    images/glade-06-02.png
  3. Select window1 from the tree and in the Signals tab add the on_window1_destroy handler to the GtkObject destroy signal. In the General tab add a Window Title: something like Glade 6 Tutorial and change the Default Width: to 250 and the Default Height: to 100.

    Your project should look like this now.

    images/glade-06-03.png

Save the project as tutorial-6.glade and we are done with the glade part.