Thu, 21 Mar 2024 00:19:08 -0500
Add a doc check unit test to Pidgin and fix the issues it found
Testing Done:
Ran the unit tests.
Reviewed at https://reviews.imfreedom.org/r/3043/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
20036
diff
changeset
|
1 | /* pidgin |
| 4359 | 2 | * |
| 15572 | 3 | * Pidgin 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. | |
|
6646
b9a0b5eb74e6
[gaim-migrate @ 7171]
Christian Hammond <chipx86@chipx86.com>
parents:
6372
diff
changeset
|
6 | * |
| 4359 | 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:
19547
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 4359 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35471
diff
changeset
|
21 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40496
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:
40496
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:
40496
diff
changeset
|
24 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40496
diff
changeset
|
25 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35471
diff
changeset
|
26 | #ifndef _PIDGINUTILS_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35471
diff
changeset
|
27 | #define _PIDGINUTILS_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35419
diff
changeset
|
28 | |
|
42347
d768e30362a4
Fix some random include issues
Gary Kramlich <grim@reaperworld.com>
parents:
41766
diff
changeset
|
29 | #include <gtk/gtk.h> |
|
40360
e21f3bbcc2a5
Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
40302
diff
changeset
|
30 | |
|
e21f3bbcc2a5
Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
40302
diff
changeset
|
31 | #include <purple.h> |
| 4359 | 32 | |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
33 | #include "pidginversion.h" |
|
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
34 | |
|
18966
6a0715b72b6b
Screenname auto-completion filtering by Leonardo Fernandes, Fixes #519
Sean Egan <seanegan@pidgin.im>
parents:
18672
diff
changeset
|
35 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
36 | 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:
32604
diff
changeset
|
37 | |
| 4359 | 38 | /** |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
39 | * pidgin_retrieve_user_info: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
40 | * @conn: The connection to get information from. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
41 | * @name: The user to get information about. |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * Get information about a user. Show immediate feedback. |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
44 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42550
diff
changeset
|
45 | * Since: 2.1 |
|
17360
4b04b2ee459a
Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17359
diff
changeset
|
46 | */ |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
47 | PIDGIN_AVAILABLE_IN_2_1 |
|
17360
4b04b2ee459a
Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17359
diff
changeset
|
48 | void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name); |
|
4b04b2ee459a
Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17359
diff
changeset
|
49 | |
|
4b04b2ee459a
Use utility functions to get user info. Closes #964.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17359
diff
changeset
|
50 | /** |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | * pidgin_retrieve_user_info_in_chat: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
52 | * @conn: The connection to get information from. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
53 | * @name: The user to get information about. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
54 | * @chatid: The chat id. |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
55 | * |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | * Get information about a user in a chat. Show immediate feedback. |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
57 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42550
diff
changeset
|
58 | * Since: 2.1 |
|
18281
f7dd07e1e434
Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18278
diff
changeset
|
59 | */ |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
60 | PIDGIN_AVAILABLE_IN_2_1 |
|
18281
f7dd07e1e434
Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18278
diff
changeset
|
61 | void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid); |
|
f7dd07e1e434
Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18278
diff
changeset
|
62 | |
|
f7dd07e1e434
Show immediate feedback when getting information about someone in a chat.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18278
diff
changeset
|
63 | /** |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
64 | * pidgin_set_accessible_label: |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
65 | * @w: The widget that we want to name. |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
66 | * @l: A GtkLabel that we want to use as the ATK name for the widget. |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
67 | * |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
68 | * Sets an ATK name for a given widget. Also sets the labelled-by |
| 8137 | 69 | * and label-for ATK relationships. |
|
42464
5de142a471e0
Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42462
diff
changeset
|
70 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42550
diff
changeset
|
71 | * Since: 2.0 |
| 8137 | 72 | */ |
|
42464
5de142a471e0
Add Since tags and visibility for Pidgin 2.x symbols
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42462
diff
changeset
|
73 | PIDGIN_AVAILABLE_IN_ALL |
|
35720
863f87bfc06e
Smiley manager: cleanup
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35500
diff
changeset
|
74 | void pidgin_set_accessible_label(GtkWidget *w, GtkLabel *l); |
|
8143
ce4b6383777b
[gaim-migrate @ 8851]
Nathan Fredrickson <nathan@silverorange.com>
parents:
8137
diff
changeset
|
75 | |
|
ce4b6383777b
[gaim-migrate @ 8851]
Nathan Fredrickson <nathan@silverorange.com>
parents:
8137
diff
changeset
|
76 | /** |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
77 | * pidgin_auto_parent_window: |
|
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
78 | * @window: The window to make transient. |
|
22007
386062b58867
Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22005
diff
changeset
|
79 | * |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
80 | * Automatically make a window transient to a suitable parent window. |
|
22007
386062b58867
Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22005
diff
changeset
|
81 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
82 | * Returns: Whether the window was made transient or not. |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
83 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42550
diff
changeset
|
84 | * Since: 2.4 |
|
22007
386062b58867
Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22005
diff
changeset
|
85 | */ |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
86 | PIDGIN_AVAILABLE_IN_2_4 |
|
22007
386062b58867
Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22005
diff
changeset
|
87 | gboolean pidgin_auto_parent_window(GtkWidget *window); |
|
386062b58867
Try to make a window transient for a suitable parent window. This currently
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22005
diff
changeset
|
88 | |
|
22131
12b395dc8c59
Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22102
diff
changeset
|
89 | /** |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
90 | * pidgin_add_widget_to_vbox: |
|
37994
11829debec7a
Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37879
diff
changeset
|
91 | * @vbox: The vertically-oriented GtkBox to add the widget to. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
92 | * @widget_label: The label to give the widget, can be %NULL. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
93 | * @sg: The GtkSizeGroup to add the label to, can be %NULL. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
94 | * @widget: The GtkWidget to add. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
95 | * @expand: Whether to expand the widget horizontally. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35105
diff
changeset
|
96 | * @p_label: Place to store a pointer to the GtkLabel, or %NULL if you don't care. |
|
22131
12b395dc8c59
Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22102
diff
changeset
|
97 | * |
|
37994
11829debec7a
Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37879
diff
changeset
|
98 | * Add a labelled widget to a GtkBox |
|
35405
d3f9e6dad44b
Convert docs from doxygen to gtk-doc format for UI headers that change in .plugins
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
99 | * |
|
38743
61e429efe744
A lot of annotation cleanups!
Gary Kramlich <grim@reaperworld.com>
parents:
38709
diff
changeset
|
100 | * Returns: (transfer full): A GtkBox already added to the GtkBox containing the GtkLabel and the GtkWidget. |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
101 | * |
|
42620
72178a341eb8
Remove minor versions from Since tags in Pidgin
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42550
diff
changeset
|
102 | * Since: 2.4 |
|
22131
12b395dc8c59
Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22102
diff
changeset
|
103 | */ |
|
42462
f7f248098e8f
Add Since and visibility for Pidgin symbols in ChangeLog.API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42347
diff
changeset
|
104 | PIDGIN_AVAILABLE_IN_2_4 |
|
22131
12b395dc8c59
Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22102
diff
changeset
|
105 | GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label); |
|
12b395dc8c59
Remove a lot of duplication from a lot of places. Closes #4558.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22102
diff
changeset
|
106 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
107 | 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:
32604
diff
changeset
|
108 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15496
diff
changeset
|
109 | #endif /* _PIDGINUTILS_H_ */ |
|
15177
8b6c66e09388
[gaim-migrate @ 17901]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15094
diff
changeset
|
110 |