Use the new GtkComboBoxText API
Also remove mentions of the old text convenience API from the docs, and point to GtkComboBoxText instead.
This commit is contained in:
committed by
Matthias Clasen
parent
99cfbecf46
commit
e7f51ef6a4
@ -316,8 +316,8 @@ create_combo_box (void)
|
||||
"}\n"
|
||||
"widget_class \"GtkComboBox\" style \"combo-box-style\"\n" );
|
||||
|
||||
widget = gtk_combo_box_new_text ();
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Combo Box");
|
||||
widget = gtk_combo_box_text_new ();
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Combo Box");
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
|
||||
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
gtk_container_add (GTK_CONTAINER (align), widget);
|
||||
|
||||
Reference in New Issue
Block a user