pidgin/gtkdocklet.h

Sat, 19 May 2007 21:38:47 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sat, 19 May 2007 21:38:47 +0000
changeset 18068
b6554e3c8224
parent 14745
gtk/gtkdocklet.h@d43256e1e6fd
parent 16996
gtk/gtkdocklet.h@749cb2af2e40
permissions
-rw-r--r--

merge of '1442df274a24edc9a31194327bd00dfbcf478720'
and 'ce02548a6b6a545d97fb3f371506bcf1b5cc5131'

6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
1 /*
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15731
diff changeset
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
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
5 * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com>
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
6 * Inspired by a similar plugin by:
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
7 * John (J5) Palmieri <johnp@martianrock.com>
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
8 *
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
10 * modify it under the terms of the GNU General Public License as
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
11 * published by the Free Software Foundation; either version 2 of the
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
12 * License, or (at your option) any later version.
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
13 *
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful, but
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
17 * General Public License for more details.
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
18 *
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
22 * 02111-1307, USA.
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
23 */
6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
24
14743
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents: 14253
diff changeset
25 #ifndef _GTKDOCKLET_H_
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents: 14253
diff changeset
26 #define _GTKDOCKLET_H_
6077
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
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
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
29
6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
30 struct docklet_ui_ops
6077
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
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;
6077
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
38 };
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
39
6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
40
14745
d43256e1e6fd [gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents: 14743
diff changeset
41 /* 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
42 void pidgin_docklet_update_icon(void);
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
43 void pidgin_docklet_clicked(int);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
44 void pidgin_docklet_embedded(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
45 void pidgin_docklet_remove(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
46 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
47 void pidgin_docklet_unload(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
48 void pidgin_docklet_init(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
49 void pidgin_docklet_uninit(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
50 void*pidgin_docklet_get_handle(void);
6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
51
14745
d43256e1e6fd [gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents: 14743
diff changeset
52 /* function in gtkdocklet-{x11,win32}.c */
12497
a17568773be3 [gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents: 12471
diff changeset
53 void docklet_ui_init(void);
6077
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
54
14743
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents: 14253
diff changeset
55 #endif /* _GTKDOCKLET_H_ */

mercurial