27 #ifndef GNT_COMBO_BOX_H 28 #define GNT_COMBO_BOX_H 35 #define GNT_TYPE_COMBO_BOX (gnt_combo_box_get_gtype()) 36 #define GNT_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_COMBO_BOX, GntComboBox)) 37 #define GNT_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_COMBO_BOX, GntComboBoxClass)) 38 #define GNT_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_COMBO_BOX)) 39 #define GNT_IS_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_COMBO_BOX)) 40 #define GNT_COMBO_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_COMBO_BOX, GntComboBoxClass)) 42 #define GNT_COMBO_BOX_FLAGS(obj) (GNT_COMBO_BOX(obj)->priv.flags) 43 #define GNT_COMBO_BOX_SET_FLAGS(obj, flags) (GNT_COMBO_BOX_FLAGS(obj) |= flags) 44 #define GNT_COMBO_BOX_UNSET_FLAGS(obj, flags) (GNT_COMBO_BOX_FLAGS(obj) &= ~(flags)) 47 typedef struct _GntComboBoxPriv GntComboBoxPriv;
63 void (*gnt_reserved1)(void);
64 void (*gnt_reserved2)(void);
65 void (*gnt_reserved3)(void);
66 void (*gnt_reserved4)(void);
void gnt_combo_box_remove(GntComboBox *box, gpointer key)
Remove an entry.
G_BEGIN_DECLS GType gnt_combo_box_get_gtype(void)
GntWidget * gnt_combo_box_new(void)
Create a new GntComboBox.
void gnt_combo_box_add_data(GntComboBox *box, gpointer key, const char *text)
Add an entry.
gpointer gnt_combo_box_get_selected_data(GntComboBox *box)
Get the data that is currently selected.
void gnt_combo_box_set_selected(GntComboBox *box, gpointer key)
Set the current selection to a specific entry.
void gnt_combo_box_remove_all(GntComboBox *box)
Remove all entries.