Mercurial > pidgin
comparison console/libgnt/gntbutton.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 |
comparison
equal
deleted
inserted
replaced
13849:8d1c55309e3c | 13850:0e1e59770cb0 |
---|---|
1 #ifndef GNT_BUTTON_H | |
2 #define GNT_BUTTON_H | |
3 | |
4 #include <glib.h> | |
5 #include <glib-object.h> | |
6 #include "gnt.h" | |
7 #include "gntwidget.h" | |
8 | |
9 #define GNT_TYPE_BUTTON (gnt_button_get_gtype()) | |
10 #define GNT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BUTTON, GntButton)) | |
11 #define GNT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BUTTON, GntButtonClass)) | |
12 #define GNT_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BUTTON)) | |
13 #define GNT_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BUTTON)) | |
14 #define GNT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BUTTON, GntButtonClass)) | |
15 | |
16 typedef struct _GnButton GntButton; | |
17 typedef struct _GnButtonPriv GntButtonPriv; | |
18 typedef struct _GnButtonClass GntButtonClass; | |
19 | |
20 struct _GnButtonPriv | |
21 { | |
22 char *text; | |
23 }; | |
24 | |
25 struct _GnButton | |
26 { | |
27 GntWidget parent; | |
28 | |
29 GntButtonPriv *priv; | |
30 | |
31 void (*gnt_reserved1)(void); | |
32 void (*gnt_reserved2)(void); | |
33 void (*gnt_reserved3)(void); | |
34 void (*gnt_reserved4)(void); | |
35 }; | |
36 | |
37 struct _GnButtonClass | |
38 { | |
39 GntWidgetClass parent; | |
40 | |
41 void (*gnt_reserved1)(void); | |
42 void (*gnt_reserved2)(void); | |
43 void (*gnt_reserved3)(void); | |
44 void (*gnt_reserved4)(void); | |
45 }; | |
46 | |
47 G_BEGIN_DECLS | |
48 | |
49 GType gnt_button_get_gtype(void); | |
50 | |
51 GntWidget *gnt_button_new(const char *text); | |
52 | |
53 G_END_DECLS | |
54 | |
55 #endif /* GNT_BUTTON_H */ |