Mercurial > pidgin
annotate finch/libgnt/gntws.h @ 20064:4da314b1e53e
Create a PurpleDisconnectReason enum (which happens to be identical to
the Telepathy Connection_Status_Reason enum at the moment).
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sat, 15 Sep 2007 23:49:54 +0000 |
parents | 44b4e8bd759b |
children | acf284962b40 |
rev | line source |
---|---|
18303
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
1 /** |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
2 * @file gntws.h Workspace API |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
3 * @ingroup gnt |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
4 */ |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
5 /* |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
6 * GNT - The GLib Ncurses Toolkit |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
7 * |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
8 * GNT is the legal property of its developers, whose names are too numerous |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
9 * to list here. Please refer to the COPYRIGHT file distributed with this |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
10 * source distribution. |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
11 * |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
12 * This library is free software; you can redistribute it and/or modify |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
13 * it under the terms of the GNU General Public License as published by |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
14 * the Free Software Foundation; either version 2 of the License, or |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
15 * (at your option) any later version. |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
16 * |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
17 * This program is distributed in the hope that it will be useful, |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
20 * GNU General Public License for more details. |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
21 * |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
22 * You should have received a copy of the GNU General Public License |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
23 * along with this program; if not, write to the Free Software |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18556
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
18303
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
25 */ |
5c6f019e48f8
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18075
diff
changeset
|
26 |
17699 | 27 #ifndef GNTWS_H |
28 #define GNTWS_H | |
29 | |
30 #include "gntwidget.h" | |
31 | |
32 #include <panel.h> | |
33 | |
34 #define GNT_TYPE_WS (gnt_ws_get_gtype()) | |
35 #define GNT_WS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WS, GntWS)) | |
36 #define GNT_IS_WS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WS)) | |
37 #define GNT_IS_WS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WS)) | |
38 #define GNT_WS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WS, GntWSClass)) | |
39 | |
40 typedef struct _GntWS GntWS; | |
41 | |
42 struct _GntWS | |
43 { | |
44 GntBindable inherit; | |
45 gchar *name; | |
46 GList *list; | |
47 GList *ordered; | |
48 gpointer ui_data; | |
49 | |
50 void *res1; | |
51 void *res2; | |
52 void *res3; | |
53 void *res4; | |
54 }; | |
55 | |
56 typedef struct _GntWSClass GntWSClass; | |
57 | |
58 struct _GntWSClass | |
59 { | |
60 GntBindableClass parent; | |
61 | |
62 void (*draw_taskbar)(GntWS *ws, gboolean ); | |
63 | |
64 void (*res1)(void); | |
65 void (*res2)(void); | |
66 void (*res3)(void); | |
67 void (*res4)(void); | |
68 }; | |
69 | |
70 G_BEGIN_DECLS | |
71 | |
72 GType gnt_ws_get_gtype(void); | |
73 | |
18075
34e011c8ed2b
F9 to create a new workspace.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17702
diff
changeset
|
74 GntWS *gnt_ws_new(const char *name); |
18556
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
75 void gnt_ws_set_name(GntWS *ws, const gchar *name); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
76 void gnt_ws_add_widget(GntWS *ws, GntWidget *widget); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
77 void gnt_ws_remove_widget(GntWS *ws, GntWidget *widget); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
78 void gnt_ws_widget_hide(GntWidget *widget, GHashTable *nodes); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
79 void gnt_ws_widget_show(GntWidget *widget, GHashTable *nodes); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
80 void gnt_ws_draw_taskbar(GntWS *ws, gboolean reposition); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
81 void gnt_ws_hide(GntWS *ws, GHashTable *table); |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18303
diff
changeset
|
82 void gnt_ws_show(GntWS *ws, GHashTable *table); |
17699 | 83 |
17702
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17699
diff
changeset
|
84 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
|
85 |
17699 | 86 #endif |