Tue, 19 Oct 2021 02:49:28 -0500
Convert pidgin from gtk-doc to gi-docgen
Testing Done:
Ran the docs locally and in convey.
Reviewed at https://reviews.imfreedom.org/r/1076/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* pidgin |
| 10418 | 2 | * |
| 15572 | 3 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 10418 | 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:
16254
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 10418 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
21 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
22 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
23 | # error "only <pidgin.h> may be included directly" |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
24 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
25 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
26 | #ifndef _PIDGINSAVEDSTATUSES_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
27 | #define _PIDGINSAVEDSTATUSES_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
28 | |
|
40360
e21f3bbcc2a5
Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
38744
diff
changeset
|
29 | #include <purple.h> |
| 10418 | 30 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
31 | G_BEGIN_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
32 | |
| 10418 | 33 | /** |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
34 | * pidgin_status_window_show: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
35 | * |
| 10418 | 36 | * Shows the status window. |
| 37 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
38 | void pidgin_status_window_show(void); |
| 10418 | 39 | |
| 40 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | * pidgin_status_window_hide: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * |
| 10418 | 43 | * Hides the status window. |
| 44 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
45 | void pidgin_status_window_hide(void); |
| 10418 | 46 | |
| 47 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | * pidgin_status_editor_show: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * @edit: %TRUE if we want to edit an existing saved |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | * status or %FALSE to create a new one. You |
|
13176
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
51 | * can not edit transient statuses--they don't |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
52 | * have titles. If you want to edit a transient |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | * status, set this to %FALSE and seed the dialog |
|
13176
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
54 | * with the transient status using the status |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
55 | * parameter to this function. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | * @status: If edit is %TRUE then this should be a |
| 15884 | 57 | * pointer to the PurpleSavedStatus to edit. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
58 | * If edit is %FALSE then this can be NULL, |
|
13176
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
59 | * or you can pass in a saved status to |
|
df549de66219
[gaim-migrate @ 15538]
Mark Doliner <markdoliner@pidgin.im>
parents:
13014
diff
changeset
|
60 | * seed the initial values of the new status. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
61 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
62 | * Shows a status editor (used for adding a new saved status or |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
63 | * editing an already existing saved status). |
|
10421
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
64 | */ |
| 15884 | 65 | void pidgin_status_editor_show(gboolean edit, PurpleSavedStatus *status); |
|
10421
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
66 | |
|
34797f8b5742
[gaim-migrate @ 11672]
Mark Doliner <markdoliner@pidgin.im>
parents:
10418
diff
changeset
|
67 | /** |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
68 | * pidgin_status_menu: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
69 | * @status: The default saved_status to show as 'selected' |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
70 | * @callback: (scope call): The callback to call when the selection changes |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
71 | * |
|
13014
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
72 | * Creates a dropdown menu of saved statuses and calls a callback |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
73 | * when one is selected |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
74 | * |
|
38744
48a376346964
Lots of updates for Pidgin-3.0.gir
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
75 | * Returns: (transfer full): The menu widget |
|
13014
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
76 | */ |
| 15884 | 77 | GtkWidget *pidgin_status_menu(PurpleSavedStatus *status, GCallback callback); |
|
13014
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
78 | |
|
fa17f785b6fe
[gaim-migrate @ 15367]
Mark Doliner <markdoliner@pidgin.im>
parents:
12245
diff
changeset
|
79 | /** |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
80 | * pidgin_status_get_handle: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
81 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40502
diff
changeset
|
82 | * Returns the GTK status handle. |
| 10418 | 83 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40502
diff
changeset
|
84 | * Returns: The handle to the GTK status system. |
| 10418 | 85 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
86 | void *pidgin_status_get_handle(void); |
| 10418 | 87 | |
| 88 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
89 | * pidgin_status_init: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
90 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40502
diff
changeset
|
91 | * Initializes the GTK status system. |
| 10418 | 92 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
93 | void pidgin_status_init(void); |
| 10418 | 94 | |
| 95 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
96 | * pidgin_status_uninit: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
97 | * |
|
41087
4fc5b0ddf55e
Remove the + from GTK
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40502
diff
changeset
|
98 | * Uninitializes the GTK status system. |
| 10418 | 99 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
100 | void pidgin_status_uninit(void); |
| 10418 | 101 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
102 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
103 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
104 | #endif /* _PIDGINSAVEDSTATUSES_H_ */ |