Mercurial > pidgin
annotate finch/libgnt/gntws.h @ 18193:09eb621782bc
explicit merge of 'f2eb358baf2c72cb37b6b9bcb4c036e44e0bcc2b'
and '2344c84a6e70c374b19936a127462d2f19c0139c'
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Tue, 19 Jun 2007 17:17:57 +0000 |
parents | 34e011c8ed2b |
children | 5c6f019e48f8 |
rev | line source |
---|---|
17699 | 1 #ifndef GNTWS_H |
2 #define GNTWS_H | |
3 | |
4 #include "gntwidget.h" | |
5 | |
6 #include <panel.h> | |
7 | |
8 #define GNT_TYPE_WS (gnt_ws_get_gtype()) | |
9 #define GNT_WS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WS, GntWS)) | |
10 #define GNT_IS_WS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WS)) | |
11 #define GNT_IS_WS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WS)) | |
12 #define GNT_WS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WS, GntWSClass)) | |
13 | |
14 typedef struct _GntWS GntWS; | |
15 | |
16 struct _GntWS | |
17 { | |
18 GntBindable inherit; | |
19 gchar *name; | |
20 GList *list; | |
21 GList *ordered; | |
22 gpointer ui_data; | |
23 | |
24 void *res1; | |
25 void *res2; | |
26 void *res3; | |
27 void *res4; | |
28 }; | |
29 | |
30 typedef struct _GntWSClass GntWSClass; | |
31 | |
32 struct _GntWSClass | |
33 { | |
34 GntBindableClass parent; | |
35 | |
36 void (*draw_taskbar)(GntWS *ws, gboolean ); | |
37 | |
38 void (*res1)(void); | |
39 void (*res2)(void); | |
40 void (*res3)(void); | |
41 void (*res4)(void); | |
42 }; | |
43 | |
44 G_BEGIN_DECLS | |
45 | |
46 GType gnt_ws_get_gtype(void); | |
47 | |
18075
34e011c8ed2b
F9 to create a new workspace.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17702
diff
changeset
|
48 GntWS *gnt_ws_new(const char *name); |
17699 | 49 void gnt_ws_set_name(GntWS *, const gchar *); |
50 void gnt_ws_add_widget(GntWS *, GntWidget *); | |
51 void gnt_ws_remove_widget(GntWS *, GntWidget *); | |
52 void gnt_ws_widget_hide(GntWidget *, GHashTable *nodes); | |
53 void gnt_ws_widget_show(GntWidget *, GHashTable *nodes); | |
54 void gnt_ws_draw_taskbar(GntWS *, gboolean reposition); | |
55 void gnt_ws_hide(GntWS *, GHashTable *); | |
56 void gnt_ws_show(GntWS *, GHashTable *); | |
57 | |
17702
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17699
diff
changeset
|
58 const char * gnt_ws_get_name(GntWS *ws); |
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17699
diff
changeset
|
59 |
17699 | 60 #endif |