File: screem-combo-box.h

package info (click to toggle)
screem 0.12.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 8,333
  • sloc: ansic: 98,234; sh: 8,278; xml: 2,278; makefile: 1,054
file content (48 lines) | stat: -rw-r--r-- 1,382 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef SCREEM_COMBO_BOX_H
#define SCREEM_COMBO_BOX_H

#include <gtk/gtkbin.h>
#include <gtk/gtktreemodel.h>

#define SCREEM_TYPE_COMBO_BOX  (screem_combo_box_get_type())
#define SCREEM_COMBO_BOX(obj)  (G_TYPE_CHECK_INSTANCE_CAST( ( obj ),   \
                                                SCREEM_TYPE_COMBO_BOX, \
                                                ScreemComboBox ) )
#define SCREEM_IS_COMBO_BOX(obj)  (G_TYPE_CHECK_INSTANCE_TYPE( ( obj ), \
                                               SCREEM_TYPE_COMBO_BOX ) )

typedef struct ScreemComboBoxPrivate ScreemComboBoxPrivate;

typedef struct ScreemComboBox ScreemComboBox;

struct ScreemComboBox {
	GtkBin parent;

	ScreemComboBoxPrivate *priv;
};

typedef struct {
	GtkBinClass parent_class;
	
	void (*changed)( ScreemComboBox *combo );

} ScreemComboBoxClass;


GType screem_combo_box_get_type( void );
ScreemComboBox *screem_combo_box_new( void );

GtkTreeModel *screem_combo_box_get_model( ScreemComboBox *combo );
void screem_combo_box_set_model( ScreemComboBox *combo,
		GtkTreeModel *model );

gint screem_combo_box_get_active( ScreemComboBox *combo );
void screem_combo_box_set_active( ScreemComboBox *combo, gint active );

gboolean screem_combo_box_get_active_iter( ScreemComboBox *combo,
		GtkTreeIter *iter );
void screem_combo_box_set_active_iter( ScreemComboBox *combo,
		GtkTreeIter *iter );


#endif