Sat, 03 Nov 2007 16:32:28 +0000
Fix iterating over accounts_signed_on_elsewhere while doing things that will
cause it to change.
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
1 | /* |
| 15884 | 2 | * System tray icon (aka docklet) plugin for Purple |
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
3 | * |
|
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
4 | * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org> |
| 6077 | 5 | * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com> |
| 6 | * Inspired by a similar plugin by: | |
| 7 | * John (J5) Palmieri <johnp@martianrock.com> | |
| 8 | * | |
| 9 | * This program is free software; you can redistribute it and/or | |
| 10 | * modify it under the terms of the GNU General Public License as | |
| 11 | * published by the Free Software Foundation; either version 2 of the | |
| 12 | * License, or (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, but | |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 17 | * General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
| 20 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16996
diff
changeset
|
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16996
diff
changeset
|
22 | * 02111-1301, USA. |
| 6077 | 23 | */ |
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
24 | |
| 14743 | 25 | #ifndef _GTKDOCKLET_H_ |
| 26 | #define _GTKDOCKLET_H_ | |
| 6077 | 27 | |
|
16996
749cb2af2e40
Now that the docklet icon is based on the status from status selector, it
Casey Harkins <charkins@pidgin.im>
parents:
16808
diff
changeset
|
28 | #include "status.h" |
| 6077 | 29 | |
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
30 | struct docklet_ui_ops |
| 6077 | 31 | { |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12016
diff
changeset
|
32 | void (*create)(void); |
|
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12016
diff
changeset
|
33 | void (*destroy)(void); |
|
16996
749cb2af2e40
Now that the docklet icon is based on the status from status selector, it
Casey Harkins <charkins@pidgin.im>
parents:
16808
diff
changeset
|
34 | void (*update_icon)(PurpleStatusPrimitive, gboolean, gboolean); |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12016
diff
changeset
|
35 | void (*blank_icon)(void); |
|
12471
5d7c12d525ed
[gaim-migrate @ 14781]
Casey Harkins <charkins@pidgin.im>
parents:
12323
diff
changeset
|
36 | void (*set_tooltip)(gchar *); |
|
10268
862ed5d3f227
[gaim-migrate @ 11414]
Christian Hammond <chipx86@chipx86.com>
parents:
6894
diff
changeset
|
37 | GtkMenuPositionFunc position_menu; |
|
20961
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
38 | gboolean (*get_geometry)(gint *x, gint *y, gint *w, gint *h); |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
39 | GObject *(*get_gdk_screen)(void); |
| 6077 | 40 | }; |
| 41 | ||
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
42 | |
|
14745
d43256e1e6fd
[gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents:
14743
diff
changeset
|
43 | /* functions in gtkdocklet.c */ |
|
16996
749cb2af2e40
Now that the docklet icon is based on the status from status selector, it
Casey Harkins <charkins@pidgin.im>
parents:
16808
diff
changeset
|
44 | void pidgin_docklet_update_icon(void); |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
45 | void pidgin_docklet_clicked(int); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
46 | void pidgin_docklet_embedded(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
47 | void pidgin_docklet_remove(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
48 | void pidgin_docklet_set_ui_ops(struct docklet_ui_ops *); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
49 | void pidgin_docklet_unload(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
50 | void pidgin_docklet_init(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
51 | void pidgin_docklet_uninit(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
52 | void*pidgin_docklet_get_handle(void); |
|
6208
46464ee45f48
[gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents:
6077
diff
changeset
|
53 | |
|
20961
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
54 | /** |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
55 | * Get the geometry of the docklet. Any of the parameters may be |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
56 | * NULL if that value is not desired. |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
57 | * |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
58 | * @param x x coordinate of the top left corner of the docklet in screen coordinates |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
59 | * @param y y coordinate of the top left corner of the docklet in screen coordinates |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
60 | * @param w width of the docklet |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
61 | * @param h height of the docklet |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
62 | * |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
63 | * @return TRUE if the geometry was found, otherwise FALSE |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
64 | */ |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
65 | gboolean pidgin_docklet_get_geometry(gint *x, gint *y, gint *w, gint *h); |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
66 | |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
67 | /** |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
68 | * Get the GdkScreen of the docklet. If the GdkScreen is not available, including |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
69 | * running on versions of Gtk/Gdk where GdkScreen does not exist (<2.2), NULL is |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
70 | * returned. |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
71 | * |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
72 | * @return GdkScreen if available, otherwise NULL |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
73 | */ |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
74 | GObject *pidgin_docklet_get_gdk_screen(void); |
|
f69b1356bb55
Add new API to the docklet for retrieving the geometry (x,y,w,h) and the
Casey Harkins <charkins@pidgin.im>
parents:
19859
diff
changeset
|
75 | |
|
14745
d43256e1e6fd
[gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents:
14743
diff
changeset
|
76 | /* function in gtkdocklet-{x11,win32}.c */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
12471
diff
changeset
|
77 | void docklet_ui_init(void); |
| 6077 | 78 | |
| 14743 | 79 | #endif /* _GTKDOCKLET_H_ */ |