Fri, 19 Aug 2022 02:27:18 -0500
Port gtkaccount to GTK4
We should still port to `GtkBuilder`, but this seems small enough to fix now.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/1611/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 8713 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8713 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 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:
15884
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 8713 | 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:
40330
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:
40330
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:
40330
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40330
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
27 | #ifndef PURPLE_PLUGINPREF_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
28 | #define PURPLE_PLUGINPREF_H |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
29 | |
| 15884 | 30 | typedef struct _PurplePluginPrefFrame PurplePluginPrefFrame; |
|
40326
cdca03a74387
Add PurpleNamedValue to use in lists instead of consecutive key and value elements
qarkai <qarkai@gmail.com>
parents:
40188
diff
changeset
|
31 | typedef struct _PurplePluginPref PurplePluginPref; |
| 8713 | 32 | |
| 14782 | 33 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
34 | * PurpleStringFormatType: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
35 | * @PURPLE_STRING_FORMAT_TYPE_NONE: The string is plain text. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
36 | * @PURPLE_STRING_FORMAT_TYPE_MULTILINE: The string can have newlines. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
37 | * @PURPLE_STRING_FORMAT_TYPE_HTML: The string can be in HTML. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
38 | * |
| 14782 | 39 | * String format for preferences. |
| 40 | */ | |
| 41 | typedef enum | |
| 42 | { | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
43 | PURPLE_STRING_FORMAT_TYPE_NONE = 0, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
44 | PURPLE_STRING_FORMAT_TYPE_MULTILINE = 1 << 0, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
45 | PURPLE_STRING_FORMAT_TYPE_HTML = 1 << 1 |
| 15884 | 46 | } PurpleStringFormatType; |
| 14782 | 47 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
48 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
49 | * PurplePluginPrefType: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
50 | * @PURPLE_PLUGIN_PREF_INFO: no-value label |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
51 | * @PURPLE_PLUGIN_PREF_STRING_FORMAT: The preference has a string value. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
52 | */ |
| 8713 | 53 | typedef enum { |
| 15884 | 54 | PURPLE_PLUGIN_PREF_NONE, |
| 55 | PURPLE_PLUGIN_PREF_CHOICE, | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
56 | PURPLE_PLUGIN_PREF_INFO, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
57 | PURPLE_PLUGIN_PREF_STRING_FORMAT |
| 15884 | 58 | } PurplePluginPrefType; |
| 8713 | 59 | |
| 60 | #include <glib.h> | |
| 61 | #include "prefs.h" | |
| 62 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20971
diff
changeset
|
63 | G_BEGIN_DECLS |
| 8713 | 64 | |
| 65 | /**************************************************************************/ | |
| 35472 | 66 | /* Plugin Preference API */ |
| 8713 | 67 | /**************************************************************************/ |
| 68 | ||
| 69 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
70 | * purple_plugin_pref_frame_new: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
71 | * |
| 8713 | 72 | * Create a new plugin preference frame |
| 73 | * | |
| 40188 | 74 | * Returns: (transfer full): a new PurplePluginPrefFrame |
| 8713 | 75 | */ |
| 15884 | 76 | PurplePluginPrefFrame *purple_plugin_pref_frame_new(void); |
| 8713 | 77 | |
| 78 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
79 | * purple_plugin_pref_frame_destroy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
80 | * @frame: The plugin frame to destroy |
| 8713 | 81 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
82 | * Destroy a plugin preference frame |
| 8713 | 83 | */ |
| 15884 | 84 | void purple_plugin_pref_frame_destroy(PurplePluginPrefFrame *frame); |
| 8713 | 85 | |
| 86 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
87 | * purple_plugin_pref_frame_add: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
88 | * @frame: The plugin frame to add the preference to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
89 | * @pref: The preference to add to the frame |
| 8713 | 90 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
91 | * Adds a plugin preference to a plugin preference frame |
| 8713 | 92 | */ |
| 15884 | 93 | void purple_plugin_pref_frame_add(PurplePluginPrefFrame *frame, PurplePluginPref *pref); |
| 8713 | 94 | |
| 95 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
96 | * purple_plugin_pref_frame_get_prefs: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
97 | * @frame: The plugin frame to get the plugin preferences from |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
98 | * |
| 8713 | 99 | * Get the plugin preferences from a plugin preference frame |
| 100 | * | |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
101 | * Returns: (element-type PurplePluginPref) (transfer none): a list of plugin preferences |
| 8713 | 102 | */ |
| 15884 | 103 | GList *purple_plugin_pref_frame_get_prefs(PurplePluginPrefFrame *frame); |
|
10414
6b10b76933e1
[gaim-migrate @ 11664]
Mark Doliner <markdoliner@pidgin.im>
parents:
9939
diff
changeset
|
104 | |
| 8713 | 105 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
106 | * purple_plugin_pref_new: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
107 | * |
| 8713 | 108 | * Create a new plugin preference |
| 109 | * | |
| 40188 | 110 | * Returns: (transfer full): a new PurplePluginPref |
| 8713 | 111 | */ |
| 15884 | 112 | PurplePluginPref *purple_plugin_pref_new(void); |
| 8713 | 113 | |
| 114 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
115 | * purple_plugin_pref_new_with_name: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
116 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
117 | * |
| 8713 | 118 | * Create a new plugin preference with name |
| 119 | * | |
| 40188 | 120 | * Returns: (transfer full): a new PurplePluginPref |
| 8713 | 121 | */ |
| 15884 | 122 | PurplePluginPref *purple_plugin_pref_new_with_name(const char *name); |
| 8713 | 123 | |
| 124 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
125 | * purple_plugin_pref_new_with_label: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
126 | * @label: The label to be displayed |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
127 | * |
| 8713 | 128 | * Create a new plugin preference with label |
| 129 | * | |
| 40188 | 130 | * Returns: (transfer full): a new PurplePluginPref |
| 8713 | 131 | */ |
| 15884 | 132 | PurplePluginPref *purple_plugin_pref_new_with_label(const char *label); |
| 8713 | 133 | |
| 134 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
135 | * purple_plugin_pref_new_with_name_and_label: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
136 | * @name: The name of the pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
137 | * @label: The label to be displayed |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * |
| 8713 | 139 | * Create a new plugin preference with name and label |
| 140 | * | |
| 40188 | 141 | * Returns: (transfer full): a new PurplePluginPref |
| 8713 | 142 | */ |
| 15884 | 143 | PurplePluginPref *purple_plugin_pref_new_with_name_and_label(const char *name, const char *label); |
| 8713 | 144 | |
| 145 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
146 | * purple_plugin_pref_destroy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
147 | * @pref: The preference to destroy |
| 8713 | 148 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
149 | * Destroy a plugin preference |
| 8713 | 150 | */ |
| 15884 | 151 | void purple_plugin_pref_destroy(PurplePluginPref *pref); |
| 8713 | 152 | |
| 153 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
154 | * purple_plugin_pref_set_name: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
155 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
156 | * @name: The name of the pref |
| 8713 | 157 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
158 | * Set a plugin pref name |
| 8713 | 159 | */ |
| 15884 | 160 | void purple_plugin_pref_set_name(PurplePluginPref *pref, const char *name); |
| 8713 | 161 | |
| 162 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
163 | * purple_plugin_pref_get_name: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
164 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * |
| 8713 | 166 | * Get a plugin pref name |
| 167 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
168 | * Returns: The name of the pref |
| 8713 | 169 | */ |
| 15884 | 170 | const char *purple_plugin_pref_get_name(PurplePluginPref *pref); |
| 8713 | 171 | |
| 172 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
173 | * purple_plugin_pref_set_label: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
174 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
175 | * @label: The label for the plugin pref |
| 8713 | 176 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
177 | * Set a plugin pref label |
| 8713 | 178 | */ |
| 15884 | 179 | void purple_plugin_pref_set_label(PurplePluginPref *pref, const char *label); |
| 8713 | 180 | |
| 181 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
182 | * purple_plugin_pref_get_label: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
183 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
184 | * |
| 8713 | 185 | * Get a plugin pref label |
| 186 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
187 | * Returns: The label for the plugin pref |
| 8713 | 188 | */ |
| 15884 | 189 | const char *purple_plugin_pref_get_label(PurplePluginPref *pref); |
| 8713 | 190 | |
| 191 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
192 | * purple_plugin_pref_set_bounds: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
193 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
194 | * @min: The min value |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
195 | * @max: The max value |
| 8713 | 196 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
197 | * Set the bounds for an integer pref |
| 8713 | 198 | */ |
| 15884 | 199 | void purple_plugin_pref_set_bounds(PurplePluginPref *pref, int min, int max); |
| 8713 | 200 | |
| 201 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
202 | * purple_plugin_pref_get_bounds: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
203 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
204 | * @min: The min value |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
205 | * @max: The max value |
| 8713 | 206 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
207 | * Get the bounds for an integer pref |
| 8713 | 208 | */ |
| 15884 | 209 | void purple_plugin_pref_get_bounds(PurplePluginPref *pref, int *min, int *max); |
| 8713 | 210 | |
| 211 | /** | |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35475
diff
changeset
|
212 | * purple_plugin_pref_set_pref_type: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
213 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
214 | * @type: The type |
| 8713 | 215 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
216 | * Set the type of a plugin pref |
| 8713 | 217 | */ |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
218 | void purple_plugin_pref_set_pref_type(PurplePluginPref *pref, PurplePluginPrefType type); |
| 8713 | 219 | |
| 220 | /** | |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35475
diff
changeset
|
221 | * purple_plugin_pref_get_pref_type: |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
222 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
223 | * |
| 8713 | 224 | * Get the type of a plugin pref |
| 225 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
226 | * Returns: The type |
| 8713 | 227 | */ |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
228 | PurplePluginPrefType purple_plugin_pref_get_pref_type(PurplePluginPref *pref); |
| 8713 | 229 | |
| 230 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
231 | * purple_plugin_pref_add_choice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
232 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
233 | * @label: The label for the choice |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
234 | * @choice: A gpointer of the choice |
| 8713 | 235 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
236 | * Set the choices for a choices plugin pref |
| 8713 | 237 | */ |
| 15884 | 238 | void purple_plugin_pref_add_choice(PurplePluginPref *pref, const char *label, gpointer choice); |
| 8713 | 239 | |
| 240 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
241 | * purple_plugin_pref_get_choices: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
242 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
243 | * |
| 8713 | 244 | * Get the choices for a choices plugin pref |
| 245 | * | |
|
40330
5311cf2ae115
Replace PurpleNamedValue with PurpleKeyValuePair in GTK-Doc comments
qarkai <qarkai@gmail.com>
parents:
40326
diff
changeset
|
246 | * Returns: (element-type PurpleKeyValuePair) (transfer none): GList of the choices |
| 8713 | 247 | */ |
| 15884 | 248 | GList *purple_plugin_pref_get_choices(PurplePluginPref *pref); |
| 8713 | 249 | |
| 250 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
251 | * purple_plugin_pref_set_max_length: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
252 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
253 | * @max_length: The max length of the string |
| 8713 | 254 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
255 | * Set the max length for a string plugin pref |
| 8713 | 256 | */ |
| 15884 | 257 | void purple_plugin_pref_set_max_length(PurplePluginPref *pref, unsigned int max_length); |
| 8713 | 258 | |
| 259 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
260 | * purple_plugin_pref_get_max_length: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
261 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
262 | * |
| 8713 | 263 | * Get the max length for a string plugin pref |
| 264 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
265 | * Returns: the max length |
| 8713 | 266 | */ |
| 15884 | 267 | unsigned int purple_plugin_pref_get_max_length(PurplePluginPref *pref); |
| 8713 | 268 | |
| 9841 | 269 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
270 | * purple_plugin_pref_set_masked: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
271 | * @pref: The plugin pref |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
272 | * @mask: The value to set |
| 9841 | 273 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
274 | * Sets the masking of a string plugin pref |
| 9841 | 275 | */ |
| 15884 | 276 | void purple_plugin_pref_set_masked(PurplePluginPref *pref, gboolean mask); |
| 9841 | 277 | |
| 278 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
279 | * purple_plugin_pref_get_masked: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
280 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
281 | * |
| 9841 | 282 | * Gets the masking of a string plugin pref |
| 283 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
284 | * Returns: The masking |
| 9841 | 285 | */ |
| 15884 | 286 | gboolean purple_plugin_pref_get_masked(PurplePluginPref *pref); |
| 9841 | 287 | |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
288 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
289 | * purple_plugin_pref_set_format_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
290 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
291 | * @format: The format of the string |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
292 | * |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
293 | * Sets the format type for a formattable-string plugin pref. You need to set the |
| 15884 | 294 | * pref type to PURPLE_PLUGIN_PREF_STRING_FORMAT first before setting the format. |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
295 | */ |
| 15884 | 296 | void purple_plugin_pref_set_format_type(PurplePluginPref *pref, PurpleStringFormatType format); |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
297 | |
|
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
298 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
299 | * purple_plugin_pref_get_format_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
300 | * @pref: The plugin pref |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
301 | * |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
302 | * Gets the format type of the formattable-string plugin pref. |
|
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
303 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
304 | * Returns: The format of the pref |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
305 | */ |
| 15884 | 306 | PurpleStringFormatType purple_plugin_pref_get_format_type(PurplePluginPref *pref); |
|
12712
21ea46d3dee9
[gaim-migrate @ 15056]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12323
diff
changeset
|
307 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20971
diff
changeset
|
308 | G_END_DECLS |
| 8713 | 309 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38716
diff
changeset
|
310 | #endif /* PURPLE_PLUGINPREF_H */ |