Fix the index when a new song is appended to the list.
[python-gnt.git] / gnt / gntvt.h
blob327430f1468b63d373b8fd6cc8e665632cec21bb
1 #ifndef GNT_VT_H
2 #define GNT_VT_H
4 #include <rote/rote.h>
5 #include "gntwindow.h"
6 #include "gnt.h"
7 #include "gntcolors.h"
8 #include "gntkeys.h"
10 #define GNT_TYPE_VT (gnt_vt_get_gtype())
11 #define GNT_VT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_VT, GntVT))
12 #define GNT_VT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_VT, GntVTClass))
13 #define GNT_IS_VT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_VT))
14 #define GNT_IS_VT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_VT))
15 #define GNT_VT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_VT, GntVTClass))
17 #define GNT_VT_FLAGS(obj) (GNT_VT(obj)->priv.flags)
18 #define GNT_VT_SET_FLAGS(obj, flags) (GNT_VT_FLAGS(obj) |= flags)
19 #define GNT_VT_UNSET_FLAGS(obj, flags) (GNT_VT_FLAGS(obj) &= ~(flags))
21 typedef struct _GnVT GntVT;
22 typedef struct _GnVTPriv GntVTPriv;
23 typedef struct _GnVTClass GntVTClass;
25 struct _GnVT
27 GntWindow parent;
28 RoteTerm *vt;
29 int timeout;
32 struct _GnVTClass
34 GntWindowClass parent;
36 void (*gnt_reserved1)(void);
37 void (*gnt_reserved2)(void);
38 void (*gnt_reserved3)(void);
39 void (*gnt_reserved4)(void);
42 G_BEGIN_DECLS
44 GType gnt_vt_get_gtype(void);
46 GntWidget *gnt_vt_new();
48 G_END_DECLS
50 #endif /* GNT_VT_H */