Mercurial > pidgin
comparison console/libgnt/gntbox.h @ 13850:0e1e59770cb0
[gaim-migrate @ 16308]
This is my first commit here. So don't yell at me if things get borked.
Also, I haven't looked at the auto-thingies yet. So don't puke at the
Makefiles.
Files in console/libgnt/ are for the 'Gaim/GObjectified Ncurses Toolkit'
library. Files in console/ uses libgaim and libgnt. Currently, only the
buddylist-ui is 'functional', ie. the buddy-list updates when someone
logs on or logs off. It still needs a lot of work.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 22 Jun 2006 08:33:54 +0000 |
parents | |
children | bbf0470cb348 |
comparison
equal
deleted
inserted
replaced
13849:8d1c55309e3c | 13850:0e1e59770cb0 |
---|---|
1 #ifndef GNT_BOX_H | |
2 #define GNT_BOX_H | |
3 | |
4 #include "gnt.h" | |
5 #include "gntwidget.h" | |
6 | |
7 #define GNT_TYPE_BOX (gnt_box_get_gtype()) | |
8 #define GNT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BOX, GntBox)) | |
9 #define GNT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BOX, GntBoxClass)) | |
10 #define GNT_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BOX)) | |
11 #define GNT_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BOX)) | |
12 #define GNT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BOX, GntBoxClass)) | |
13 | |
14 typedef struct _GnBox GntBox; | |
15 typedef struct _GnBoxClass GntBoxClass; | |
16 | |
17 struct _GnBox | |
18 { | |
19 GntWidget parent; | |
20 | |
21 gboolean vertical; | |
22 gboolean homogeneous; | |
23 GList *list; /* List of widgets */ | |
24 | |
25 GList *active; | |
26 | |
27 char *title; | |
28 | |
29 void (*gnt_reserved1)(void); | |
30 void (*gnt_reserved2)(void); | |
31 void (*gnt_reserved3)(void); | |
32 void (*gnt_reserved4)(void); | |
33 }; | |
34 | |
35 struct _GnBoxClass | |
36 { | |
37 GntWidgetClass parent; | |
38 | |
39 void (*gnt_reserved1)(void); | |
40 void (*gnt_reserved2)(void); | |
41 void (*gnt_reserved3)(void); | |
42 void (*gnt_reserved4)(void); | |
43 }; | |
44 | |
45 G_BEGIN_DECLS | |
46 | |
47 GType gnt_box_get_gtype(void); | |
48 | |
49 GntWidget *gnt_box_new(gboolean homo, gboolean vert); | |
50 | |
51 void gnt_box_add_widget(GntBox *box, GntWidget *widget); | |
52 | |
53 void gnt_box_set_title(GntBox *box, const char *title); | |
54 | |
55 G_END_DECLS | |
56 | |
57 #endif /* GNT_BOX_H */ | |
58 |