Tue, 07 May 2013 05:04:46 -0400
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.
| 5032 | 1 | /** |
|
5864
86822afeeab0
[gaim-migrate @ 6295]
Christian Hammond <chipx86@chipx86.com>
parents:
5857
diff
changeset
|
2 | * @file gtkpounce.h GTK+ Buddy Pounce API |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 5032 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
21653
diff
changeset
|
11 | * |
| 5032 | 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * 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:
16254
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5032 | 25 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #ifndef _PIDGINPOUNCE_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #define _PIDGINPOUNCE_H_ |
| 5032 | 28 | |
| 29 | #include "pounce.h" | |
| 30 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25888
diff
changeset
|
31 | 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:
25888
diff
changeset
|
32 | |
| 5032 | 33 | /** |
| 34 | * Displays a New Buddy Pounce or Edit Buddy Pounce dialog. | |
| 35 | * | |
|
21215
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
36 | * @param account The optional account to use. |
|
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
37 | * @param name The optional name to pounce on. |
|
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
38 | * @param cur_pounce The current buddy pounce, if editing an existing one. |
|
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
39 | */ |
|
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
40 | void pidgin_pounce_editor_show(PurpleAccount *account, const char *name, |
|
775a49fdc926
Document the window transient_for changes. Refs #2617
Richard Laager <rlaager@pidgin.im>
parents:
20706
diff
changeset
|
41 | PurplePounce *cur_pounce); |
| 5032 | 42 | |
| 43 | /** | |
| 12136 | 44 | * Shows the pounces manager window. |
| 45 | */ | |
|
21653
621c47778132
merge of '73ae9aeda3c58fbf8437421da68d19d06f93e686'
Evan Schoenberg <evands@pidgin.im>
parents:
21223
diff
changeset
|
46 | void pidgin_pounces_manager_show(void); |
| 20706 | 47 | |
| 48 | /** | |
| 12136 | 49 | * Hides the pounces manager window. |
| 50 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
51 | void pidgin_pounces_manager_hide(void); |
| 12136 | 52 | |
| 53 | /** | |
|
12155
a7f7e1ecd799
[gaim-migrate @ 14456]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12136
diff
changeset
|
54 | * Returns the gtkpounces handle |
| 5032 | 55 | * |
|
12155
a7f7e1ecd799
[gaim-migrate @ 14456]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12136
diff
changeset
|
56 | * @return The handle to the GTK+ pounces system |
| 5032 | 57 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
58 | void *pidgin_pounces_get_handle(void); |
| 5032 | 59 | |
|
5875
493a921c0378
[gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents:
5864
diff
changeset
|
60 | /** |
|
493a921c0378
[gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents:
5864
diff
changeset
|
61 | * Initializes the GTK+ pounces subsystem. |
|
493a921c0378
[gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents:
5864
diff
changeset
|
62 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
63 | void pidgin_pounces_init(void); |
|
5875
493a921c0378
[gaim-migrate @ 6307]
Christian Hammond <chipx86@chipx86.com>
parents:
5864
diff
changeset
|
64 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25888
diff
changeset
|
65 | 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:
25888
diff
changeset
|
66 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
67 | #endif /* _PIDGINPOUNCE_H_ */ |