pidgin/gtkdocklet.h

Tue, 07 May 2013 05:04:46 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 07 May 2013 05:04:46 -0400
changeset 33923
0fcc5635daba
parent 33527
c51c70f5545a
child 35416
35c615531b2a
permissions
-rw-r--r--

Rewrite debug window filter in JS.

Note, this does cause a couple regressions, but they are probably not
that big a deal. First, the JS regular expression syntax is slightly
different. Second, the JS regex API lacks a way to reliably determine
the location of matched groups, so we can't highlight just the groups
and must highlight the entire expression.

I suspect that none of our users ever had to use any fancy regex in the
debug window, and that most of our developers didn't even know it could
be done. So I doubt these regressions will cause much pain.

25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 20962
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
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 20962
diff changeset
3 *
6208
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>
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 20962
diff changeset
8 *
6077
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.
25888
d0fdd378a635 Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents: 20962
diff changeset
18 *
6077
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
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
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
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32307
diff changeset
28 G_BEGIN_DECLS
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32307
diff changeset
29
33527
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
30 typedef enum
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
31 {
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
32 PIDGIN_DOCKLET_CONNECTING = 0x1,
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
33 PIDGIN_DOCKLET_CONV_PENDING = 0x2,
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
34 PIDGIN_DOCKLET_EMAIL_PENDING = 0x4
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
35 } PidginDockletFlag;
c51c70f5545a Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents: 33246
diff changeset
36
33246
b9a5b8ddf92c Add API to access the underlying GtkStatusIcon for the docklet.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
37 /**
b9a5b8ddf92c Add API to access the underlying GtkStatusIcon for the docklet.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
38 * Returns the GtkStatusIcon used for the docklet.
b9a5b8ddf92c Add API to access the underlying GtkStatusIcon for the docklet.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
39 */
b9a5b8ddf92c Add API to access the underlying GtkStatusIcon for the docklet.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
40 GtkStatusIcon *pidgin_docklet_get_status_icon(void);
b9a5b8ddf92c Add API to access the underlying GtkStatusIcon for the docklet.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
41
15562
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
42 void pidgin_docklet_init(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
43 void pidgin_docklet_uninit(void);
8c8249fe5e3c gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
44 void*pidgin_docklet_get_handle(void);
6208
46464ee45f48 [gaim-migrate @ 6694]
Robert McQueen <robot101@debian.org>
parents: 6077
diff changeset
45
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32307
diff changeset
46 G_END_DECLS
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32307
diff changeset
47
32307
bef14ba3eda1 Remove GtkDocklet abstraction and merge GtkStatusIcon code into it.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29641
diff changeset
48 #endif /* _GTKDOCKLET_H_ */
6077
a4e87d8f61a0 [gaim-migrate @ 6536]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
49

mercurial