Mercurial > pidgin.yaz
annotate finch/libgnt/gntcombobox.h @ 16071:5e436cd088e4
merge of '6c54a71cc08e47f3b1498c61ee62d17107165817'
and 'eae479abc840db2b4808b2de16397086deefab3b'
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 11 Apr 2007 18:03:09 +0000 |
parents | f00f2e283ffb |
children | 8410511f4dbb |
rev | line source |
---|---|
15818 | 1 #ifndef GNT_COMBO_BOX_H |
2 #define GNT_COMBO_BOX_H | |
3 | |
4 #include "gnt.h" | |
5 #include "gntcolors.h" | |
6 #include "gntkeys.h" | |
7 #include "gntwidget.h" | |
8 | |
9 #define GNT_TYPE_COMBO_BOX (gnt_combo_box_get_gtype()) | |
10 #define GNT_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_COMBO_BOX, GntComboBox)) | |
11 #define GNT_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_COMBO_BOX, GntComboBoxClass)) | |
12 #define GNT_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_COMBO_BOX)) | |
13 #define GNT_IS_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_COMBO_BOX)) | |
14 #define GNT_COMBO_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_COMBO_BOX, GntComboBoxClass)) | |
15 | |
16 #define GNT_COMBO_BOX_FLAGS(obj) (GNT_COMBO_BOX(obj)->priv.flags) | |
17 #define GNT_COMBO_BOX_SET_FLAGS(obj, flags) (GNT_COMBO_BOX_FLAGS(obj) |= flags) | |
18 #define GNT_COMBO_BOX_UNSET_FLAGS(obj, flags) (GNT_COMBO_BOX_FLAGS(obj) &= ~(flags)) | |
19 | |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
20 typedef struct _GntComboBox GntComboBox; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
21 typedef struct _GntComboBoxPriv GntComboBoxPriv; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
22 typedef struct _GntComboBoxClass GntComboBoxClass; |
15818 | 23 |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
24 struct _GntComboBox |
15818 | 25 { |
26 GntWidget parent; | |
27 | |
28 GntWidget *dropdown; /* This is a GntTree */ | |
29 | |
30 void *selected; /* Currently selected key */ | |
31 }; | |
32 | |
15931
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
33 struct _GntComboBoxClass |
15818 | 34 { |
35 GntWidgetClass parent; | |
36 | |
37 void (*gnt_reserved1)(void); | |
38 void (*gnt_reserved2)(void); | |
39 void (*gnt_reserved3)(void); | |
40 void (*gnt_reserved4)(void); | |
41 }; | |
42 | |
43 G_BEGIN_DECLS | |
44 | |
45 GType gnt_combo_box_get_gtype(void); | |
46 | |
47 GntWidget *gnt_combo_box_new(void); | |
48 | |
49 void gnt_combo_box_add_data(GntComboBox *box, gpointer key, const char *text); | |
50 | |
51 void gnt_combo_box_remove(GntComboBox *box, gpointer key); | |
52 | |
53 void gnt_combo_box_remove_all(GntComboBox *box); | |
54 | |
55 gpointer gnt_combo_box_get_selected_data(GntComboBox *box); | |
56 | |
57 void gnt_combo_box_set_selected(GntComboBox *box, gpointer key); | |
58 | |
59 G_END_DECLS | |
60 | |
61 #endif /* GNT_COMBO_BOX_H */ |