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.
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
1 | /** |
|
18650
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
2 | * @file gtkcertmgr.h GTK+ Certificate Manager API |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
3 | * @ingroup pidgin |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
4 | */ |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
5 | /* |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
6 | * pidgin |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
7 | * |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
8 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
10 | * source distribution. |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
11 | * |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
12 | * This program is free software; you can redistribute it and/or modify |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
13 | * it under the terms of the GNU General Public License as published by |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
14 | * the Free Software Foundation; either version 2 of the License, or |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
15 | * (at your option) any later version. |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
16 | * |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
17 | * This program is distributed in the hope that it will be useful, |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
20 | * GNU General Public License for more details. |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
21 | * |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
22 | * You should have received a copy of the GNU General Public License |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
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:
18821
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
18650
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
25 | * |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
26 | */ |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
27 | |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
28 | #ifndef _PIDGINCERTMGR_H_ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
29 | #define _PIDGINCERTMGR_H_ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
30 | |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
31 | /************************************************************************** |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
32 | * @name Structures * |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
33 | **************************************************************************/ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
34 | typedef struct _PidginCertificateManager PidginCertificateManager; |
|
18650
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
35 | |
|
18820
4151da0055b3
- Add a Certificate GTK management interface type
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18815
diff
changeset
|
36 | /** |
|
4151da0055b3
- Add a Certificate GTK management interface type
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18815
diff
changeset
|
37 | * GTK+ Certificate Manager subwidget |
|
4151da0055b3
- Add a Certificate GTK management interface type
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18815
diff
changeset
|
38 | */ |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
39 | struct _PidginCertificateManager { |
|
18820
4151da0055b3
- Add a Certificate GTK management interface type
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18815
diff
changeset
|
40 | /** Create, configure, show, and return the management interface */ |
|
4151da0055b3
- Add a Certificate GTK management interface type
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18815
diff
changeset
|
41 | GtkWidget * (* build)(void); |
|
18821
7024d0ee56e1
- Add label field to PidginCertificateManager
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18820
diff
changeset
|
42 | /** Notebook label to use in the CertMgr dialog */ |
|
7024d0ee56e1
- Add label field to PidginCertificateManager
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18820
diff
changeset
|
43 | gchar *label; |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
44 | }; |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
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:
19859
diff
changeset
|
46 | 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:
19859
diff
changeset
|
47 | |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
48 | /**************************************************************************/ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
49 | /** @name Certificate Manager API */ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
50 | /**************************************************************************/ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
51 | /*@{*/ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
52 | /** |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
53 | * Show the certificate manager window |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
54 | */ |
|
18650
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
55 | void pidgin_certmgr_show(void); |
|
8a34ac83df75
- Add a skeleton for the Pidgin Certificate Manager and include it in
William Ehlhardt <williamehlhardt@gmail.com>
parents:
diff
changeset
|
56 | |
|
18815
a3d656beadcf
- Make a real Certificate Manager dialog instead of a stupid popup. It
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18651
diff
changeset
|
57 | /** |
|
a3d656beadcf
- Make a real Certificate Manager dialog instead of a stupid popup. It
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18651
diff
changeset
|
58 | * Hide the certificate manager window |
|
a3d656beadcf
- Make a real Certificate Manager dialog instead of a stupid popup. It
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18651
diff
changeset
|
59 | */ |
|
a3d656beadcf
- Make a real Certificate Manager dialog instead of a stupid popup. It
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18651
diff
changeset
|
60 | void pidgin_certmgr_hide(void); |
|
a3d656beadcf
- Make a real Certificate Manager dialog instead of a stupid popup. It
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18651
diff
changeset
|
61 | |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
62 | /*@}*/ |
|
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
63 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
19859
diff
changeset
|
64 | 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:
19859
diff
changeset
|
65 | |
|
18651
b2639d73930c
- More skeleton
William Ehlhardt <williamehlhardt@gmail.com>
parents:
18650
diff
changeset
|
66 | #endif /* _PIDGINCERTMGR_H_ */ |