Fri, 10 Mar 2023 16:37:41 -0600
Make PurpleRequestFieldChoice into a GObject
This also does an `hg cp`, though with all the renaming of the parameter names, maybe that wasn't as useful for tracking the diff.
I wonder if this should implement `GListModel`, but the values are currently arbitrary pointers, so it won't work right now.
Testing Done:
Compiled and opened Request Fields from Demo protocol.
Reviewed at https://reviews.imfreedom.org/r/2335/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 5441 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 5441 | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * 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:
18814
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5441 | 20 | * |
| 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:
39738
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:
39738
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:
39738
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39510
diff
changeset
|
27 | #ifndef PURPLE_PREFS_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39510
diff
changeset
|
28 | #define PURPLE_PREFS_H |
| 5441 | 29 | |
|
5638
53e752c88ea1
[gaim-migrate @ 6047]
Christian Hammond <chipx86@chipx86.com>
parents:
5561
diff
changeset
|
30 | #include <glib.h> |
|
53e752c88ea1
[gaim-migrate @ 6047]
Christian Hammond <chipx86@chipx86.com>
parents:
5561
diff
changeset
|
31 | |
| 5441 | 32 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
33 | * PurplePrefType: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
34 | * @PURPLE_PREF_NONE: No type. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
35 | * @PURPLE_PREF_BOOLEAN: Boolean. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
36 | * @PURPLE_PREF_INT: Integer. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
37 | * @PURPLE_PREF_STRING: String. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
38 | * @PURPLE_PREF_STRING_LIST: List of strings. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
39 | * @PURPLE_PREF_PATH: Path. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
40 | * @PURPLE_PREF_PATH_LIST: List of paths. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | * |
|
25631
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
42 | * Preference data types. |
| 5441 | 43 | */ |
|
32206
a2c62b07ae5a
Please correct me if I'm wrong, but I don't think we gain anything
Mark Doliner <markdoliner@pidgin.im>
parents:
29267
diff
changeset
|
44 | typedef enum |
| 5441 | 45 | { |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
46 | PURPLE_PREF_NONE, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
47 | PURPLE_PREF_BOOLEAN, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | PURPLE_PREF_INT, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | PURPLE_PREF_STRING, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | PURPLE_PREF_STRING_LIST, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | PURPLE_PREF_PATH, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
52 | PURPLE_PREF_PATH_LIST |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
53 | |
| 15884 | 54 | } PurplePrefType; |
| 5441 | 55 | |
| 56 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
57 | * PurplePrefCallback: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
58 | * @name: the name of the preference which has changed. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
59 | * @type: the type of the preferenced named @name |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
60 | * @val: the new value of the preferencs; should be cast to the correct |
|
21427
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
61 | * type. For instance, to recover the value of a #PURPLE_PREF_INT |
| 35419 | 62 | * preference, use <literal>GPOINTER_TO_INT(val)</literal>. |
| 63 | * Alternatively, just call purple_prefs_get_int(), | |
| 64 | * purple_prefs_get_string_list() etc. | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
65 | * @data: Arbitrary data specified when the callback was connected with |
|
21427
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
66 | * purple_prefs_connect_callback(). |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
67 | * |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
68 | * The type of callbacks for preference changes. |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
69 | * |
| 35471 | 70 | * See purple_prefs_connect_callback(). |
| 5441 | 71 | */ |
| 15884 | 72 | typedef void (*PurplePrefCallback) (const char *name, PurplePrefType type, |
|
12816
5f93e09fa9a6
[gaim-migrate @ 15164]
Mark Doliner <markdoliner@pidgin.im>
parents:
12712
diff
changeset
|
73 | gconstpointer val, gpointer data); |
| 5441 | 74 | |
|
37904
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
75 | /** |
|
38556
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
76 | * PurplePrefCallbackData: |
|
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
77 | * |
|
37904
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
78 | * Opaque type to carry callback information |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
79 | * |
|
38556
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
80 | * Since: 2.11.0 |
|
37904
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
81 | */ |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
82 | typedef struct _PurplePrefCallbackData PurplePrefCallbackData; |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
83 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
84 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
85 | |
| 5441 | 86 | /**************************************************************************/ |
| 35472 | 87 | /* Prefs API |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23129
diff
changeset
|
88 | Preferences are named according to a directory-like structure. |
|
17436
a3e9be0f17ef
- Added a description of preference grouping to the Prefs API code
William Ehlhardt <williamehlhardt@gmail.com>
parents:
15884
diff
changeset
|
89 | Example: "/plugins/core/potato/is_from_idaho" (probably a boolean) */ |
| 5441 | 90 | /**************************************************************************/ |
| 91 | ||
| 92 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
93 | * purple_prefs_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
94 | * |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
95 | * Returns the prefs subsystem handle. |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
96 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
97 | * Returns: The prefs subsystem handle. |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
98 | */ |
| 15884 | 99 | void *purple_prefs_get_handle(void); |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
100 | |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
101 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * purple_prefs_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
103 | * |
| 5441 | 104 | * Initialize core prefs |
| 105 | */ | |
| 15884 | 106 | void purple_prefs_init(void); |
| 5441 | 107 | |
| 108 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
109 | * purple_prefs_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
110 | * |
| 8235 | 111 | * Uninitializes the prefs subsystem. |
| 112 | */ | |
| 15884 | 113 | void purple_prefs_uninit(void); |
| 8235 | 114 | |
| 115 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
116 | * purple_prefs_add_none: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
117 | * @name: The name of the pref |
| 5441 | 118 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
119 | * Add a new typeless pref. |
| 5441 | 120 | */ |
| 15884 | 121 | void purple_prefs_add_none(const char *name); |
| 5441 | 122 | |
| 123 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
124 | * purple_prefs_add_bool: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
125 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
126 | * @value: The initial value to set |
| 5441 | 127 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
128 | * Add a new boolean pref. |
| 5441 | 129 | */ |
| 15884 | 130 | void purple_prefs_add_bool(const char *name, gboolean value); |
| 5441 | 131 | |
| 132 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
133 | * purple_prefs_add_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
134 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
135 | * @value: The initial value to set |
| 5441 | 136 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
137 | * Add a new integer pref. |
| 5441 | 138 | */ |
| 15884 | 139 | void purple_prefs_add_int(const char *name, int value); |
| 5441 | 140 | |
| 141 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * purple_prefs_add_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
143 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
144 | * @value: The initial value to set |
| 5441 | 145 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
146 | * Add a new string pref. |
| 5441 | 147 | */ |
| 15884 | 148 | void purple_prefs_add_string(const char *name, const char *value); |
| 5441 | 149 | |
| 150 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
151 | * purple_prefs_add_string_list: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
152 | * @name: The name of the pref |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38556
diff
changeset
|
153 | * @value: (element-type utf8) (transfer none): The initial value to set |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
154 | * |
| 5561 | 155 | * Add a new string list pref. |
| 156 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
157 | * Note: This function takes a copy of the strings in the value list. The list |
|
21054
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
158 | * itself and original copies of the strings are up to the caller to |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
159 | * free. |
| 5561 | 160 | */ |
| 15884 | 161 | void purple_prefs_add_string_list(const char *name, GList *value); |
| 5561 | 162 | |
| 163 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
164 | * purple_prefs_add_path: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
165 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
166 | * @value: The initial value to set |
| 15370 | 167 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
168 | * Add a new path pref. |
| 15370 | 169 | */ |
| 15884 | 170 | void purple_prefs_add_path(const char *name, const char *value); |
| 15370 | 171 | |
| 172 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * purple_prefs_add_path_list: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
174 | * @name: The name of the pref |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38556
diff
changeset
|
175 | * @value: (element-type utf8) (transfer none): The initial value to set |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
176 | * |
| 15370 | 177 | * Add a new path list pref. |
| 178 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
179 | * Note: This function takes a copy of the strings in the value list. The list |
|
21054
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
180 | * itself and original copies of the strings are up to the caller to |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
181 | * free. |
| 15370 | 182 | */ |
| 15884 | 183 | void purple_prefs_add_path_list(const char *name, GList *value); |
| 15370 | 184 | |
| 185 | ||
| 186 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
187 | * purple_prefs_remove: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
188 | * @name: The name of the pref |
| 5441 | 189 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
190 | * Remove a pref. |
| 5441 | 191 | */ |
| 15884 | 192 | void purple_prefs_remove(const char *name); |
| 5441 | 193 | |
| 194 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
195 | * purple_prefs_rename: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
196 | * @oldname: The old name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
197 | * @newname: The new name for the pref |
| 6693 | 198 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
199 | * Rename a pref |
| 6693 | 200 | */ |
| 15884 | 201 | void purple_prefs_rename(const char *oldname, const char *newname); |
| 6693 | 202 | |
| 203 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
204 | * purple_prefs_rename_boolean_toggle: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
205 | * @oldname: The old name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
206 | * @newname: The new name for the pref |
| 8705 | 207 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
208 | * Rename a boolean pref, toggling it's value |
| 8705 | 209 | */ |
| 15884 | 210 | void purple_prefs_rename_boolean_toggle(const char *oldname, const char *newname); |
| 8705 | 211 | |
| 212 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
213 | * purple_prefs_destroy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
214 | * |
| 5441 | 215 | * Remove all prefs. |
| 216 | */ | |
| 15884 | 217 | void purple_prefs_destroy(void); |
| 5441 | 218 | |
| 219 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
220 | * purple_prefs_set_bool: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
221 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
222 | * @value: The value to set |
|
29266
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
223 | * |
| 5441 | 224 | * Set boolean pref value |
| 225 | */ | |
| 15884 | 226 | void purple_prefs_set_bool(const char *name, gboolean value); |
| 5441 | 227 | |
| 228 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
229 | * purple_prefs_set_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
230 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
231 | * @value: The value to set |
| 5441 | 232 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
233 | * Set integer pref value |
| 5441 | 234 | */ |
| 15884 | 235 | void purple_prefs_set_int(const char *name, int value); |
| 5441 | 236 | |
| 237 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
238 | * purple_prefs_set_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
239 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
240 | * @value: The value to set |
| 5441 | 241 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
242 | * Set string pref value |
| 5441 | 243 | */ |
| 15884 | 244 | void purple_prefs_set_string(const char *name, const char *value); |
| 5441 | 245 | |
| 246 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
247 | * purple_prefs_set_string_list: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
248 | * @name: The name of the pref |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38556
diff
changeset
|
249 | * @value: (element-type utf8) (transfer none): The value to set |
| 5561 | 250 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
251 | * Set string list pref value |
| 5561 | 252 | */ |
| 15884 | 253 | void purple_prefs_set_string_list(const char *name, GList *value); |
| 5561 | 254 | |
| 255 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
256 | * purple_prefs_set_path: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
257 | * @name: The name of the pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
258 | * @value: The value to set |
| 15370 | 259 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
260 | * Set path pref value |
| 15370 | 261 | */ |
| 15884 | 262 | void purple_prefs_set_path(const char *name, const char *value); |
| 15370 | 263 | |
| 264 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
265 | * purple_prefs_set_path_list: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
266 | * @name: The name of the pref |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38556
diff
changeset
|
267 | * @value: (element-type utf8) (transfer none): The value to set |
| 15370 | 268 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
269 | * Set path list pref value |
| 15370 | 270 | */ |
| 15884 | 271 | void purple_prefs_set_path_list(const char *name, GList *value); |
| 15370 | 272 | |
| 273 | ||
| 274 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
275 | * purple_prefs_exists: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
276 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
277 | * |
| 9611 | 278 | * Check if a pref exists |
| 279 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
280 | * Returns: TRUE if the pref exists. Otherwise FALSE. |
| 9611 | 281 | */ |
| 15884 | 282 | gboolean purple_prefs_exists(const char *name); |
| 9611 | 283 | |
| 284 | /** | |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35475
diff
changeset
|
285 | * purple_prefs_get_pref_type: |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
286 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
287 | * |
| 6538 | 288 | * Get pref type |
| 289 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
290 | * Returns: The type of the pref |
| 6538 | 291 | */ |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
292 | PurplePrefType purple_prefs_get_pref_type(const char *name); |
| 6538 | 293 | |
| 294 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
295 | * purple_prefs_get_bool: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
296 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
297 | * |
| 5441 | 298 | * Get boolean pref value |
| 299 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
300 | * Returns: The value of the pref |
| 5441 | 301 | */ |
| 15884 | 302 | gboolean purple_prefs_get_bool(const char *name); |
| 5441 | 303 | |
| 304 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
305 | * purple_prefs_get_int: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
306 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
307 | * |
| 5441 | 308 | * Get integer pref value |
| 309 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
310 | * Returns: The value of the pref |
| 5441 | 311 | */ |
| 15884 | 312 | int purple_prefs_get_int(const char *name); |
| 5441 | 313 | |
| 314 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
315 | * purple_prefs_get_string: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
316 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
317 | * |
| 5441 | 318 | * Get string pref value |
| 319 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
320 | * Returns: The value of the pref |
| 5441 | 321 | */ |
| 15884 | 322 | const char *purple_prefs_get_string(const char *name); |
| 5441 | 323 | |
| 324 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
325 | * purple_prefs_get_string_list: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
326 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
327 | * |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10066
diff
changeset
|
328 | * Get string list pref value |
| 5561 | 329 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
330 | * Returns: (transfer full) (element-type utf8): The value of the pref. |
| 5561 | 331 | */ |
| 15884 | 332 | GList *purple_prefs_get_string_list(const char *name); |
| 5561 | 333 | |
| 334 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
335 | * purple_prefs_get_path: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
336 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
337 | * |
| 15370 | 338 | * Get path pref value |
| 339 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
340 | * Returns: The value of the pref |
| 15370 | 341 | */ |
| 15884 | 342 | const char *purple_prefs_get_path(const char *name); |
| 15370 | 343 | |
| 344 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
345 | * purple_prefs_get_path_list: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
346 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
347 | * |
| 15370 | 348 | * Get path list pref value |
| 349 | * | |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
350 | * Returns: (transfer full) (element-type utf8): The value of the pref. |
| 15370 | 351 | */ |
| 15884 | 352 | GList *purple_prefs_get_path_list(const char *name); |
| 15370 | 353 | |
|
23129
f2be0f621ef6
Make this a doxygen comment.
Etan Reisner <deryni@pidgin.im>
parents:
21427
diff
changeset
|
354 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
355 | * purple_prefs_get_children_names: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
356 | * @name: The parent pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
357 | * |
|
18714
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
358 | * Returns a list of children for a pref |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
359 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
360 | * Returns: (transfer full) (element-type utf8): A list of newly allocated |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
361 | * strings denoting the names of the children. Returns %NULL if there |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
362 | * are no children or if pref doesn't exist. The caller must free all |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
363 | * the strings and the list. |
|
18714
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
364 | */ |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
365 | GList *purple_prefs_get_children_names(const char *name); |
| 15370 | 366 | |
| 367 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
368 | * purple_prefs_connect_callback: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
369 | * @handle: The handle of the receiver. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
370 | * @name: The name of the preference |
|
35682
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
371 | * @cb: (scope call): The callback function |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35177
diff
changeset
|
372 | * @data: The data to pass to the callback function. |
|
27805
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
373 | * |
| 5441 | 374 | * Add a callback to a pref (and its children) |
|
27805
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
375 | * |
| 35471 | 376 | * See purple_prefs_disconnect_callback(). |
|
27805
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
377 | * |
| 35471 | 378 | * Returns: An id to disconnect the callback |
| 5441 | 379 | */ |
| 15884 | 380 | guint purple_prefs_connect_callback(void *handle, const char *name, PurplePrefCallback cb, |
| 5441 | 381 | gpointer data); |
| 382 | ||
| 383 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
384 | * purple_prefs_disconnect_callback: |
|
39510
c6d01c6e99d4
Clean up doc warnings for prefs
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
385 | * @callback_id: The callback_id to disconnect. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
386 | * |
| 5441 | 387 | * Remove a callback to a pref |
| 388 | */ | |
| 15884 | 389 | void purple_prefs_disconnect_callback(guint callback_id); |
| 5441 | 390 | |
| 391 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
392 | * purple_prefs_disconnect_by_handle: |
|
39510
c6d01c6e99d4
Clean up doc warnings for prefs
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
393 | * @handle: The handle to remove. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
394 | * |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
395 | * Remove all pref callbacks by handle |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
396 | */ |
| 15884 | 397 | void purple_prefs_disconnect_by_handle(void *handle); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
398 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
399 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
400 | * purple_prefs_trigger_callback: |
|
39510
c6d01c6e99d4
Clean up doc warnings for prefs
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
401 | * @name: The name of the preference. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
402 | * |
| 5684 | 403 | * Trigger callbacks as if the pref changed |
| 404 | */ | |
| 15884 | 405 | void purple_prefs_trigger_callback(const char *name); |
| 5684 | 406 | |
| 407 | /** | |
|
38556
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
408 | * purple_prefs_trigger_callback_object: |
|
39510
c6d01c6e99d4
Clean up doc warnings for prefs
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
409 | * @data: Callback data. |
|
38556
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
410 | * |
|
37904
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
411 | * Trigger callbacks as if the pref changed, taking a #PurplePrefCallbackData |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
412 | * instead of a name |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
413 | * |
|
38556
5912dabcde42
libpurple: Update documentation to GtkDoc style
Mike Ruprecht <cmaiku@gmail.com>
parents:
37904
diff
changeset
|
414 | * Since: 2.11.0 |
|
37904
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
415 | */ |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
416 | void purple_prefs_trigger_callback_object(PurplePrefCallbackData *data); |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
417 | |
|
5915afa891bd
Fix prefs for stuff that was broken in the merge
Gary Kramlich <grim@reaperworld.com>
parents:
37901
diff
changeset
|
418 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
419 | * purple_prefs_load: |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
420 | * |
| 5441 | 421 | * Read preferences |
| 422 | */ | |
| 15884 | 423 | gboolean purple_prefs_load(void); |
| 5441 | 424 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
425 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
426 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39510
diff
changeset
|
427 | #endif /* PURPLE_PREFS_H */ |