pidgin/prefs/pidgincredentialproviderrow.h

Wed, 28 Sep 2022 03:50:52 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Wed, 28 Sep 2022 03:50:52 -0500
changeset 41751
0bba0ca12b0a
parent 41520
a5dd595361b4
child 42465
b7d530551c1b
permissions
-rw-r--r--

Remove old call from zephyr

It was hidden in `#ifdef WIN32`, so not sure if this ever is used, but it hides an outdated symbol from search results.

Testing Done:
None.

Reviewed at https://reviews.imfreedom.org/r/1853/

40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
1 /*
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
4 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
7 * source distribution.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
8 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
12 * (at your option) any later version.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
13 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
17 * GNU General Public License for more details.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
18 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
21 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
22
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
25 #endif
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
26
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
27 #ifndef PIDGIN_CREDENTIAL_PROVIDER_ROW_H
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
28 #define PIDGIN_CREDENTIAL_PROVIDER_ROW_H
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
29
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
30 #include <glib.h>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
31
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
32 #include <gtk/gtk.h>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
33
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 41197
diff changeset
34 #include <adwaita.h>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
35
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
36 G_BEGIN_DECLS
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
37
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
38 /**
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
39 * PIDGIN_TYPE_CREDENTIAL_PROVIDER_ROW:
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
40 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
41 * The standard _get_type macro for #PidginCredentialProviderRow.
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
42 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
43 * Since: 3.0.0
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
44 */
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
45 #define PIDGIN_TYPE_CREDENTIAL_PROVIDER_ROW (pidgin_credential_provider_row_get_type())
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
46 G_DECLARE_FINAL_TYPE(PidginCredentialProviderRow,
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
47 pidgin_credential_provider_row,
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 41197
diff changeset
48 PIDGIN, CREDENTIAL_PROVIDER_ROW, AdwActionRow)
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
49
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
50 /**
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
51 * PidginCredentialProviderRow:
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
52 *
41197
1fbba07f21cf Remove unnecessary gtk-doc comments from pidgin
Gary Kramlich <grim@reaperworld.com>
parents: 40886
diff changeset
53 * #PidginCredentialProviderRow is a widget for the preferences window to let
1fbba07f21cf Remove unnecessary gtk-doc comments from pidgin
Gary Kramlich <grim@reaperworld.com>
parents: 40886
diff changeset
54 * users configure their credential provider.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
55 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
56 * Since: 3.0.0
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
57 */
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
58
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
59 /**
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
60 * pidgin_credential_provider_row_new:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
61 * @provider: The credential provider to bind.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
62 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
63 * Creates a new #PidginCredentialProviderRow instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
64 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
65 * Returns: (transfer full): The new #PidginCredentialProviderRow instance.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
66 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
67 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
68 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
69 GtkWidget *pidgin_credential_provider_row_new(PurpleCredentialProvider *provider);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
70
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
71 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
72 * pidgin_credential_provider_row_get_provider:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
73 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
74 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
75 * Gets the #PurpleCredentialProvider displayed by this widget.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
76 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
77 * Returns: (transfer none): The displayed #PurpleCredentialProvider.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
78 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
79 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
80 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
81 PurpleCredentialProvider *pidgin_credential_provider_row_get_provider(PidginCredentialProviderRow *row);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
82
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
83 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
84 * pidgin_credential_provider_row_get_active:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
85 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
86 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
87 * Gets whether the row is displayed as active.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
88 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
89 * Returns: Whether the row is active.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
90 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
91 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
92 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
93 gboolean pidgin_credential_provider_row_get_active(PidginCredentialProviderRow *row);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
94
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
95 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
96 * pidgin_credential_provider_row_set_active:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
97 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
98 * @active: Whether to display as active.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
99 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
100 * Sets whether the row is displayed as active.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
101 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
102 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
103 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
104 void pidgin_credential_provider_row_set_active(PidginCredentialProviderRow *row, gboolean active);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
105
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
106 G_END_DECLS
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
107
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
108 #endif /* PIDGIN_CREDENTIAL_PROVIDER_ROW_H */

mercurial