Difference entre gtk_combo_box_new et gtk_combo_box_new_text

zaibacker Messages postés 97 Date d'inscription vendredi 17 février 2006 Statut Membre Dernière intervention 24 janvier 2018 - 27 mars 2007 à 16:40
luhtor Messages postés 2023 Date d'inscription mardi 24 septembre 2002 Statut Membre Dernière intervention 28 juillet 2008 - 27 mars 2007 à 17:24
Bonjour, j'aimerai connaitre la difference entre les 2 constructeurs gtk_combo_box_new et gtk_combo_box_new_text de la librairie gtk.
J'hesite encore à utiliser l'un ou l'autre.
Merci

1 réponse

luhtor Messages postés 2023 Date d'inscription mardi 24 septembre 2002 Statut Membre Dernière intervention 28 juillet 2008 6
27 mars 2007 à 17:24
Pff, mais la doc, ca sert a ca non ?
http://developer.gnome.org/doc/API/2.0/gtk/

gtk_combo_box_new ()
GtkWidget* gtk_combo_box_new (void);


Creates a new empty GtkComboBox.

<col align=\"left\" valign=\"top\" />----
Returns :, A new GtkComboBox.

gtk_combo_box_new_text ()
GtkWidget* gtk_combo_box_new_text (void);


Convenience function which constructs a new text combo box, which is a
GtkComboBox just displaying strings. If you use this function to create
a text combo box, you should only manipulate its data source with the
following convenience functions:
gtk_combo_box_append_text()
,
gtk_combo_box_insert_text()
,
gtk_combo_box_prepend_text()
and
gtk_combo_box_remove_text()
.

<col align=\"left\" valign=\"top\" />----
Returns :, A new text combo box.
0
Rejoignez-nous