pidgin/gtkdocklet.h

branch
cpw.khc.msnp14
changeset 20478
46933dc62880
parent 20472
6a6d2ef151e6
parent 15884
4de1981757fc
child 20481
65485e2ed8a3
equal deleted inserted replaced
20476:198222e01a7d 20478:46933dc62880
1 /*
2 * System tray icon (aka docklet) plugin for Purple
3 *
4 * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org>
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
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 * 02111-1307, USA.
23 */
24
25 #ifndef _GTKDOCKLET_H_
26 #define _GTKDOCKLET_H_
27
28 typedef enum
29 {
30 DOCKLET_STATUS_OFFLINE,
31 DOCKLET_STATUS_AVAILABLE,
32 DOCKLET_STATUS_PENDING,
33 DOCKLET_STATUS_AWAY,
34 DOCKLET_STATUS_BUSY,
35 DOCKLET_STATUS_XA,
36 DOCKLET_STATUS_CONNECTING
37 } DockletStatus;
38
39 struct docklet_ui_ops
40 {
41 void (*create)(void);
42 void (*destroy)(void);
43 void (*update_icon)(DockletStatus);
44 void (*blank_icon)(void);
45 void (*set_tooltip)(gchar *);
46 GtkMenuPositionFunc position_menu;
47 };
48
49
50 /* functions in gtkdocklet.c */
51 void pidgin_docklet_clicked(int);
52 void pidgin_docklet_embedded(void);
53 void pidgin_docklet_remove(void);
54 void pidgin_docklet_set_ui_ops(struct docklet_ui_ops *);
55 void pidgin_docklet_unload(void);
56 void pidgin_docklet_init(void);
57 void pidgin_docklet_uninit(void);
58 void*pidgin_docklet_get_handle(void);
59
60 /* function in gtkdocklet-{x11,win32}.c */
61 void docklet_ui_init(void);
62
63 #endif /* _GTKDOCKLET_H_ */

mercurial