Tue, 15 Oct 2024 00:47:42 -0500
Port prefs to AdwSwitchRow
Now that we depend on Adwaita 1.4, we can flip the switch on using these (pun intended).
This also simplifies some extra tracking we needed to do for activations and focus, since the Adwaita widgets do that for us.
Testing Done:
Opened prefs, confirmed all the switches were there, and toggled them all without any warnings.
Also used the mnemonics to toggle the switches from the keyboard.
Reviewed at https://reviews.imfreedom.org/r/3582/
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
1 | /* |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 5212 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8046 | 7 | * source distribution. |
|
6483
d12ecdf8e489
[gaim-migrate @ 6997]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
12 | * any later version. |
| 5212 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
17 | * more details. |
| 5212 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42417
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 5212 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39532
diff
changeset
|
27 | #ifndef PURPLE_DEBUG_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39532
diff
changeset
|
28 | #define PURPLE_DEBUG_H |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
29 | |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
30 | #include <glib.h> |
| 35572 | 31 | #include <glib-object.h> |
| 32 | ||
| 5212 | 33 | #include <stdarg.h> |
| 34 | ||
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
35 | #include "purpleversion.h" |
|
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
36 | |
|
38643
cb7fbf08fcb7
Convert PurpleDebugUiOps into an interface.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38560
diff
changeset
|
37 | G_BEGIN_DECLS |
| 35572 | 38 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
39 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
40 | * PurpleDebugLevel: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
41 | * @PURPLE_DEBUG_ALL: All debug levels. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
42 | * @PURPLE_DEBUG_MISC: General chatter. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
43 | * @PURPLE_DEBUG_INFO: General operation Information. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | * @PURPLE_DEBUG_WARNING: Warnings. |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
45 | * @PURPLE_DEBUG_ERROR: Errors. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
46 | * @PURPLE_DEBUG_FATAL: Fatal errors. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
47 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
48 | * Available debug levels. |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
49 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
50 | * Since: 2.0 |
| 5212 | 51 | */ |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
52 | typedef enum { |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | PURPLE_DEBUG_ALL = 0, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
54 | PURPLE_DEBUG_MISC, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
55 | PURPLE_DEBUG_INFO, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | PURPLE_DEBUG_WARNING, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
57 | PURPLE_DEBUG_ERROR, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
58 | PURPLE_DEBUG_FATAL |
| 5212 | 59 | |
| 15884 | 60 | } PurpleDebugLevel; |
| 5212 | 61 | |
|
40950
c3fc77a3c015
Separate PurpleDebugUi out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
40874
diff
changeset
|
62 | #include "purpledebugui.h" |
| 5212 | 63 | |
| 64 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
65 | * purple_debug: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
66 | * @level: The debug level. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
67 | * @category: The category (or %NULL). |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
68 | * @format: The format string. |
|
38560
3007790519bf
libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents:
37113
diff
changeset
|
69 | * @...: The parameters to insert into the format string. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
71 | * Outputs debug information. |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
72 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
73 | * Since: 2.0 |
| 5212 | 74 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
75 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
76 | void purple_debug(PurpleDebugLevel level, const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(3, 4); |
| 5212 | 77 | |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
78 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
79 | * purple_debug_misc: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
80 | * @category: The category or %NULL. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
81 | * @format: The format string. |
|
38560
3007790519bf
libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents:
37113
diff
changeset
|
82 | * @...: The parameters to insert into the format string. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
83 | * |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
84 | * Outputs misc. level debug information. |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
85 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
86 | * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_MISC as the |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
87 | * level. |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
88 | * |
| 35471 | 89 | * See purple_debug(). |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
90 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
91 | * Since: 2.0 |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
92 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
93 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
94 | void purple_debug_misc(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
95 | |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
96 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
97 | * purple_debug_info: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
98 | * @category: The category (or %NULL). |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
99 | * @format: The format string. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
100 | * @...: The parameters to insert into the format string. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
101 | * |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
102 | * Outputs info level debug information. |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
103 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
104 | * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_INFO as |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
105 | * the level. |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
106 | * |
| 35471 | 107 | * See purple_debug(). |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
108 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
109 | * Since: 2.0 |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
110 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
111 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
112 | void purple_debug_info(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
113 | |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
114 | /** |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
115 | * purple_debug_warning: |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
116 | * @category: The category or %NULL. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
117 | * @format: The format string. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
118 | * @...: The parameters to insert into the format string. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
119 | * |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
120 | * Outputs warning level debug information. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
121 | * |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
122 | * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_WARNING as the |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
123 | * level. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
124 | * |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
125 | * See purple_debug(). |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
126 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
127 | * Since: 2.0 |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
128 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
129 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
130 | void purple_debug_warning(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
131 | |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
132 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
133 | * purple_debug_error: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
134 | * @category: The category or %NULL. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
135 | * @format: The format string. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
136 | * @...: The parameters to insert into the format string. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
137 | * |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
138 | * Outputs error level debug information. |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
139 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
140 | * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_ERROR as the |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
141 | * level. |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
142 | * |
| 35471 | 143 | * See purple_debug(). |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
144 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
145 | * Since: 2.0 |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
146 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
147 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
148 | void purple_debug_error(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
149 | |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
150 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
151 | * purple_debug_fatal: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
152 | * @category: The category (or %NULL). |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
153 | * @format: The format string. |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
154 | * @...: The parameters to insert into the format string. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
155 | * |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
156 | * Outputs fatal error level debug information. |
|
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
157 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
158 | * This is a wrapper for purple_debug(), and uses #PURPLE_DEBUG_ERROR as the |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
159 | * level. |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
160 | * |
| 35471 | 161 | * See purple_debug(). |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
162 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
163 | * Since: 2.0 |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
164 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
165 | PURPLE_AVAILABLE_IN_ALL |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
166 | void purple_debug_fatal(const gchar *category, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |
|
6721
41d2d86860f3
[gaim-migrate @ 7248]
Christian Hammond <chipx86@chipx86.com>
parents:
6483
diff
changeset
|
167 | |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
168 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
169 | * purple_debug_set_verbose: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
170 | * @verbose: %TRUE to enable verbose debugging or %FALSE to disable it. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
171 | * |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
172 | * Enable or disable verbose debugging. This ordinarily should only be called |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
173 | * by purple_debug_init(), but there are cases where this can be useful for |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
174 | * plugins. |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
175 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
176 | * Since: 2.6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
177 | */ |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
178 | PURPLE_AVAILABLE_IN_2_6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
179 | void purple_debug_set_verbose(gboolean verbose); |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
180 | |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
181 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
182 | * purple_debug_is_verbose: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
183 | * |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
184 | * Check if verbose logging is enabled. |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
185 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
186 | * Returns: %TRUE if verbose debugging is enabled, %FALSE if it is not. |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
187 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
188 | * Since: 2.6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
189 | */ |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
190 | PURPLE_AVAILABLE_IN_2_6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
191 | gboolean purple_debug_is_verbose(void); |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
192 | |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
193 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
194 | * purple_debug_set_unsafe: |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
195 | * @unsafe: %TRUE to enable debug logging of messages that could potentially |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
196 | * contain passwords and other sensitive information. %FALSE to |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
197 | * disable it. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
198 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
199 | * Enable or disable unsafe debugging. This ordinarily should only be called by |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
200 | * purple_debug_init(), but there are cases where this can be useful for |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
201 | * plugins. |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
202 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
203 | * Since: 2.6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
204 | */ |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
205 | PURPLE_AVAILABLE_IN_2_6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
206 | void purple_debug_set_unsafe(gboolean unsafe); |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
207 | |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
208 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
209 | * purple_debug_is_unsafe: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
210 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
211 | * Check if unsafe debugging is enabled. Defaults to %FALSE. |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
212 | * |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
213 | * Returns: %TRUE if the debug logging of all messages is enabled, %FALSE if |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
214 | * messages that could potentially contain passwords and other |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
215 | * sensitive information are not logged. |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
216 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
217 | * Since: 2.6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
218 | */ |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41208
diff
changeset
|
219 | PURPLE_AVAILABLE_IN_2_6 |
|
27542
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
220 | gboolean purple_debug_is_unsafe(void); |
|
a7acdc4ba23f
Move the handling of PURPLE_UNSAFE_DEBUG to purple_debug_init(). Also add
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22621
diff
changeset
|
221 | |
|
40828
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
222 | /****************************************************************************** |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
223 | * Debug Subsystem |
|
4ee19005534e
Modernize debug.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
224 | *****************************************************************************/ |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
225 | |
|
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
226 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
227 | * purple_debug_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
228 | * |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
229 | * Initializes the debug subsystem. |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
230 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
231 | * Since: 2.0 |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
232 | */ |
|
42417
098ae1818160
Make sure all of the debug API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
233 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 234 | void purple_debug_init(void); |
|
10307
f3ba80364053
[gaim-migrate @ 11497]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
235 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
236 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5212
diff
changeset
|
237 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39532
diff
changeset
|
238 | #endif /* PURPLE_DEBUG_H */ |