Thu, 25 Aug 2022 21:34:53 -0500
Port the invite dialog to GTK4
Testing Done:
Opened the dialog via conversations -> invite and made sure it worked as expected.
Reviewed at https://reviews.imfreedom.org/r/1644/
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
22 | #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:
40215
diff
changeset
|
23 | # 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:
40215
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40215
diff
changeset
|
25 | |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | #ifndef PURPLE_COUNTING_NODE_H |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #define PURPLE_COUNTING_NODE_H |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | #include <glib.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib-object.h> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #include "blistnode.h" |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #define PURPLE_TYPE_COUNTING_NODE (purple_counting_node_get_type()) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | #define PURPLE_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNode)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | #define PURPLE_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | #define PURPLE_IS_COUNTING_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_COUNTING_NODE)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | #define PURPLE_IS_COUNTING_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_COUNTING_NODE)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | #define PURPLE_COUNTING_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_COUNTING_NODE, PurpleCountingNodeClass)) |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | typedef struct _PurpleCountingNode PurpleCountingNode; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | typedef struct _PurpleCountingNodeClass PurpleCountingNodeClass; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * PurpleCountingNode: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * A node that keeps count of the number of children that it has. It tracks the |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * total number of children, the number of children corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * accounts, and the number of online children. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * The two types of counting nodes are: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | * <orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | * <listitem>Contact: Keeps track of the number of buddies under it.</listitem> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * <listitem>Group: Keeps track of the number of chats and contacts under it. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * </listitem> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * </orderedlist> |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * See #PurpleContact, #PurpleGroup |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
59 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
60 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | struct _PurpleCountingNode { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | PurpleBlistNode node; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | }; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | struct _PurpleCountingNodeClass { |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | PurpleBlistNodeClass node_class; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | /*< private >*/ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | void (*_purple_reserved1)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | void (*_purple_reserved2)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | void (*_purple_reserved3)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | void (*_purple_reserved4)(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | }; |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | G_BEGIN_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * purple_counting_node_get_type: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * Returns: The #GType for the #PurpleCountingNode object. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
82 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
83 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | GType purple_counting_node_get_type(void); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | * purple_counting_node_get_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * Returns the total number of children of the counting node. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * Returns: The total number of children of the node |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
94 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
95 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | int purple_counting_node_get_total_size(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * purple_counting_node_get_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * Returns the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * accounts. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * Returns: The number of children with online accounts |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
107 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
108 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | int purple_counting_node_get_current_size(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * purple_counting_node_get_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * Returns the number of children of the counting node that are online. |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * Returns: The total number of online children |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
119 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
120 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | int purple_counting_node_get_online_count(PurpleCountingNode *counter); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | * purple_counting_node_change_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | * @delta: The value to change the total size by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * Changes the total number of children of the counting node. The provided |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * delta value is added to the count, or if it's negative, the count is |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
132 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
133 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | void purple_counting_node_change_total_size(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * purple_counting_node_change_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | * @delta: The value to change the current size by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | * Changes the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * accounts. The provided delta value is added to the count, or if it's |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | * negative, the count is decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
145 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
146 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | void purple_counting_node_change_current_size(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | * purple_counting_node_change_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
153 | * @delta: The value to change the online count by |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
155 | * Changes the number of children of the counting node that are online. The |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
156 | * provided delta value is added to the count, or if it's negative, the count is |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | * decreased. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
158 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
159 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
160 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | void purple_counting_node_change_online_count(PurpleCountingNode *counter, int delta); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
163 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
164 | * purple_counting_node_set_total_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
165 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | * @totalsize: The total number of children of the node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
167 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
168 | * Sets the total number of children of the counting node. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
169 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
170 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
171 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
172 | void purple_counting_node_set_total_size(PurpleCountingNode *counter, int totalsize); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
173 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
175 | * purple_counting_node_set_current_size: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
176 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
177 | * @currentsize: The number of children with online accounts |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
178 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
179 | * Sets the number of children of the counting node corresponding to online |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
180 | * accounts. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
181 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
182 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | void purple_counting_node_set_current_size(PurpleCountingNode *counter, int currentsize); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | /** |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
187 | * purple_counting_node_set_online_count: |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
188 | * @counter: The node |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
189 | * @onlinecount: The total number of online children |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | * |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
191 | * Sets the number of children of the counting node that are online. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
192 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
193 | * Since: 3.0.0 |
|
37945
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | */ |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
195 | void purple_counting_node_set_online_count(PurpleCountingNode *counter, int onlinecount); |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
197 | G_END_DECLS |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
198 | |
|
49ac171ebe26
move CountingNode to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
199 | #endif /* PURPLE_COUNTING_NODE_H */ |