Mercurial > pidgin
annotate finch/libgnt/gntwindow.h @ 18015:f8fc41570bf1
propagate from branch 'org.maemo.garage.pidgin.pidgin.pidgin-create-window' (head aa14d4a155af76ab7e3be4b5a92082e3bb2daa21)
to branch 'im.pidgin.rlaager.merging.for_2_1_0' (head c8c2bc1f0dd3a0a30b7be8b90114f176ab8c7943)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 20 May 2007 14:53:41 +0000 |
parents | f00f2e283ffb |
children | 3c3fc1432a01 8410511f4dbb |
rev | line source |
---|---|
15817 | 1 #ifndef GNT_WINDOW_H |
2 #define GNT_WINDOW_H | |
3 | |
4 #include "gnt.h" | |
5 #include "gntbox.h" | |
6 #include "gntcolors.h" | |
7 #include "gntkeys.h" | |
8 #include "gntmenu.h" | |
9 | |
10 #define GNT_TYPE_WINDOW (gnt_window_get_gtype()) | |
11 #define GNT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WINDOW, GntWindow)) | |
12 #define GNT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_WINDOW, GntWindowClass)) | |
13 #define GNT_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WINDOW)) | |
14 #define GNT_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WINDOW)) | |
15 #define GNT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WINDOW, GntWindowClass)) | |
16 | |
17 #define GNT_WINDOW_FLAGS(obj) (GNT_WINDOW(obj)->priv.flags) | |
18 #define GNT_WINDOW_SET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) |= flags) | |
19 #define GNT_WINDOW_UNSET_FLAGS(obj, flags) (GNT_WINDOW_FLAGS(obj) &= ~(flags)) | |
20 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
21 typedef struct _GntWindow GntWindow; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
22 typedef struct _GntWindowPriv GntWindowPriv; |
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
23 typedef struct _GntWindowClass GntWindowClass; |
15817 | 24 |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
25 struct _GntWindow |
15817 | 26 { |
27 GntBox parent; | |
28 GntMenu *menu; | |
29 }; | |
30 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
31 struct _GntWindowClass |
15817 | 32 { |
33 GntBoxClass parent; | |
34 | |
35 void (*gnt_reserved1)(void); | |
36 void (*gnt_reserved2)(void); | |
37 void (*gnt_reserved3)(void); | |
38 void (*gnt_reserved4)(void); | |
39 }; | |
40 | |
41 G_BEGIN_DECLS | |
42 | |
43 GType gnt_window_get_gtype(void); | |
44 | |
45 #define gnt_vwindow_new(homo) gnt_window_box_new(homo, TRUE) | |
46 #define gnt_hwindow_new(homo) gnt_window_box_new(homo, FALSE) | |
47 | |
48 GntWidget *gnt_window_new(void); | |
49 | |
50 GntWidget *gnt_window_box_new(gboolean homo, gboolean vert); | |
51 | |
52 void gnt_window_set_menu(GntWindow *window, GntMenu *menu); | |
53 | |
54 G_END_DECLS | |
55 | |
56 #endif /* GNT_WINDOW_H */ |