Gtk ComboBox
Gtk ComboBox
-
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.
-
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.
-
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.
Save the project as tutorial-6.glade and we are done with the glade part.