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.
| 5437 | 1 | /** |
| 2 | * @file gtknotify.h GTK+ Notification 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 |
| 5437 | 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. | |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
5437
diff
changeset
|
11 | * |
| 5437 | 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 |
| 5437 | 25 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #ifndef _PIDGINNOTIFY_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #define _PIDGINNOTIFY_H_ |
| 5437 | 28 | |
| 29 | #include "notify.h" | |
|
26467
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
30 | #include "pounce.h" |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
31 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
27476
diff
changeset
|
32 | 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:
27476
diff
changeset
|
33 | |
|
26467
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
34 | /** |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
35 | * Adds a buddy pounce to the buddy pounce dialog |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
36 | * |
|
26802
a7048e1c0eaa
Some doxygen fixes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26467
diff
changeset
|
37 | * @param account The account |
|
a7048e1c0eaa
Some doxygen fixes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26467
diff
changeset
|
38 | * @param pounce The pounce |
|
26467
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
39 | * @param alias The buddy alias |
|
26802
a7048e1c0eaa
Some doxygen fixes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26467
diff
changeset
|
40 | * @param event Event description |
|
26467
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
41 | * @param message Pounce message |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
42 | * @param date Pounce date |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
43 | */ |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
44 | void pidgin_notify_pounce_add(PurpleAccount *account, PurplePounce *pounce, |
|
ca1524dbcbf0
A patch from Jorge Villaseñor which makes all pounces share a single window.
Kevin Stange <kstange@pidgin.im>
parents:
20147
diff
changeset
|
45 | const char *alias, const char *event, const char *message, const char *date); |
| 5437 | 46 | |
| 47 | /** | |
| 48 | * Returns the UI operations structure for GTK+ notification functions. | |
| 49 | * | |
| 50 | * @return The GTK+ UI notify operations structure. | |
| 51 | */ | |
| 15884 | 52 | PurpleNotifyUiOps *pidgin_notify_get_ui_ops(void); |
| 5437 | 53 | |
|
27476
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
54 | /** |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
55 | * Initializes the GTK+ notifications subsystem. |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
56 | */ |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
57 | void pidgin_notify_init(void); |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
58 | |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
59 | /** |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
60 | * Uninitialized the GTK+ notifications subsystem. |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
61 | */ |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
diff
changeset
|
62 | void pidgin_notify_uninit(void); |
|
d44640cb5686
Clear the notifications via a signal instead of pidgin_close_notify.
Paul Aurich <darkrain42@pidgin.im>
parents:
26802
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:
27476
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:
27476
diff
changeset
|
65 | |
|
33527
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
66 | /** |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
67 | * Returns TRUE if there are unseen emails, FALSE otherwise. |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
68 | * |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
69 | * @return TRUE if there are unseen emails, FALSE otherwise. |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
70 | */ |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
71 | gboolean pidgin_notify_emails_pending(void); |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
72 | |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
73 | /** |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
74 | * Presents mail dialog to the user. |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
75 | * |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
76 | * @return void. |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
77 | */ |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
78 | void pidgin_notify_emails_present(void *data); |
|
c51c70f5545a
Add email notification in the docklet area.
Jorge Villaseñor <salinasv@pidgin.im>
parents:
32790
diff
changeset
|
79 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
80 | #endif /* _PIDGINNOTIFY_H_ */ |