Sun, 09 Jan 2022 12:11:21 -0600
Remove some deprecated accounts api
Testing Done:
Compiled and ran
Reviewed at https://reviews.imfreedom.org/r/1222/
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* pidgin |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40302
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:
40302
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:
40302
diff
changeset
|
24 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40302
diff
changeset
|
25 | |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | #ifndef PIDGIN_PROTOCOL_STORE_H |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #define PIDGIN_PROTOCOL_STORE_H |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | /** |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40741
diff
changeset
|
30 | * PidginProtocolStore: |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | * #PidginProtocolStore is a #GtkListStore that automatically keeps track of |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | * what protocols are currently available in libpurple. It's intended to be |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | * used any time that you need to present a protocol selection to the user. |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40741
diff
changeset
|
35 | * |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
40741
diff
changeset
|
36 | * Since: 3.0.0 |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | */ |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | #include <gtk/gtk.h> |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | #include <purple.h> |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | |
|
40711
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
43 | /** |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
44 | * PidginProtocolStoreColumn: |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
45 | * @PIDGIN_PROTOCOL_STORE_COLUMN_PROTOCOL: This column holds a reference to a |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
46 | * #PurpleProtocol. |
|
40741
850137e8737c
Select the proper protocol in the account editor.
Gary Kramlich <grim@reaperworld.com>
parents:
40711
diff
changeset
|
47 | * @PIDGIN_PROTOCOL_STORE_COLUMN_ID: This column holds the id of the protocol. |
|
40711
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
48 | * @PIDGIN_PROTOCOL_STORE_COLUMN_NAME: This column holds the name of the |
|
40741
850137e8737c
Select the proper protocol in the account editor.
Gary Kramlich <grim@reaperworld.com>
parents:
40711
diff
changeset
|
49 | * protocol which is used for display. |
|
40711
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
50 | * @PIDGIN_PROTOCOL_STORE_COLUMN_ICON: This column holds a #GdkPixbuf of the |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
51 | * logo of the protocol. |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
52 | * |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
53 | * Constants for accessing columns in a #PidginProtocolStore. |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
54 | * |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
55 | * Since: 3.0.0 |
|
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
56 | */ |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | typedef enum { |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | PIDGIN_PROTOCOL_STORE_COLUMN_PROTOCOL, |
|
40741
850137e8737c
Select the proper protocol in the account editor.
Gary Kramlich <grim@reaperworld.com>
parents:
40711
diff
changeset
|
59 | PIDGIN_PROTOCOL_STORE_COLUMN_ID, |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | PIDGIN_PROTOCOL_STORE_COLUMN_NAME, |
|
40302
28deeeb1ecdf
Fix some issues found in review
Gary Kramlich <grim@reaperworld.com>
parents:
40297
diff
changeset
|
61 | PIDGIN_PROTOCOL_STORE_COLUMN_ICON, |
|
40711
3ec3eae31fe4
Fix a number of issues with the pidgin api reference
Gary Kramlich <grim@reaperworld.com>
parents:
40502
diff
changeset
|
62 | /*< private >*/ |
|
40296
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | PIDGIN_PROTOCOL_STORE_N_COLUMNS, |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | } PidginProtocolStoreColumn; |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | G_BEGIN_DECLS |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | #define PIDGIN_TYPE_PROTOCOL_STORE pidgin_protocol_store_get_type() |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | G_DECLARE_FINAL_TYPE(PidginProtocolStore, pidgin_protocol_store, PIDGIN, |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | PROTOCOL_STORE, GtkListStore) |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | /** |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | * pidgin_protocol_store_new: |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | * Creates a new #PidginProtocolStore that can be used anywhere a #GtkListStore |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | * can be used. |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * Returns: (transfer full): The new #PidginProtocolStore instance. |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | * |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * Since: 3.0.0 |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | */ |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | GtkListStore *pidgin_protocol_store_new(void); |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | G_END_DECLS |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | |
|
c9900fc6e689
Initial start of PidginProtocolStore
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | #endif /* PIDGIN_PROTOCOL_STORE_H */ |