Fri, 10 Mar 2023 16:37:41 -0600
Make PurpleRequestFieldChoice into a GObject
This also does an `hg cp`, though with all the renaming of the parameter names, maybe that wasn't as useful for tracking the diff.
I wonder if this should implement `GListModel`, but the values are currently arbitrary pointers, so it won't work right now.
Testing Done:
Compiled and opened Request Fields from Demo protocol.
Reviewed at https://reviews.imfreedom.org/r/2335/
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
1 | /* |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
4 | * |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
8 | * |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
05ac40f0e0c4
Add a protocol actions interface
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 |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
13 | * |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
18 | * |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
21 | */ |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
22 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
23 | #include "purpleprotocolactions.h" |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
24 | |
|
42009
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
25 | enum { |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
26 | SIG_ACTIONS_CHANGED, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
27 | N_SIGNALS, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
28 | }; |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
29 | static guint signals[N_SIGNALS] = {0, }; |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
30 | |
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
31 | /****************************************************************************** |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
32 | * GObject Implementation |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
33 | *****************************************************************************/ |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
34 | G_DEFINE_INTERFACE(PurpleProtocolActions, purple_protocol_actions, |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
35 | PURPLE_TYPE_PROTOCOL) |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
36 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
37 | static void |
|
42009
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
38 | purple_protocol_actions_default_init(PurpleProtocolActionsInterface *iface) { |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
39 | /** |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
40 | * PurpleProtocolActions::actions-changed: |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
41 | * @self: The instance. |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
42 | * @account: The [class@Account] whose actions changed. |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
43 | * |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
44 | * A signal that is emitted to tell interested parties that the actions |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
45 | * have changed. |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
46 | * |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
47 | * Since: 3.0.0 |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
48 | */ |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
49 | signals[SIG_ACTIONS_CHANGED] = g_signal_new_class_handler( |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
50 | "actions-changed", |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
51 | G_TYPE_FROM_INTERFACE(iface), |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
52 | G_SIGNAL_RUN_LAST, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
53 | NULL, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
54 | NULL, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
55 | NULL, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
56 | NULL, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
57 | G_TYPE_NONE, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
58 | 1, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
59 | PURPLE_TYPE_ACCOUNT); |
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
60 | } |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
61 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
62 | /****************************************************************************** |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
63 | * Public API |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
64 | *****************************************************************************/ |
|
41460
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
65 | const gchar * |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
66 | purple_protocol_actions_get_prefix(PurpleProtocolActions *actions) { |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
67 | PurpleProtocolActionsInterface *iface = NULL; |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
68 | |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
69 | g_return_val_if_fail(PURPLE_IS_PROTOCOL_ACTIONS(actions), NULL); |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
70 | |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
71 | iface = PURPLE_PROTOCOL_ACTIONS_GET_IFACE(actions); |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
72 | if(iface != NULL) { |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
73 | if(iface->get_prefix != NULL) { |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
74 | return iface->get_prefix(actions); |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
75 | } else { |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
76 | return purple_protocol_get_id(PURPLE_PROTOCOL(actions)); |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
77 | } |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
78 | } |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
79 | |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
80 | return NULL; |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
81 | } |
|
fccbea158b51
Add a get_prefix method to the PurpleProtocolActions interface
Gary Kramlich <grim@reaperworld.com>
parents:
41437
diff
changeset
|
82 | |
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
83 | GActionGroup * |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
84 | purple_protocol_actions_get_action_group(PurpleProtocolActions *actions, |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
85 | PurpleConnection *connection) |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
86 | { |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
87 | PurpleProtocolActionsInterface *iface = NULL; |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
88 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
89 | g_return_val_if_fail(PURPLE_IS_PROTOCOL_ACTIONS(actions), NULL); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
90 | g_return_val_if_fail(PURPLE_IS_CONNECTION(connection), NULL); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
91 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
92 | iface = PURPLE_PROTOCOL_ACTIONS_GET_IFACE(actions); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
93 | if(iface != NULL && iface->get_action_group != NULL) { |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
94 | return iface->get_action_group(actions, connection); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
95 | } |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
96 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
97 | return NULL; |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
98 | } |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
99 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
100 | GMenu * |
|
42004
620d1adf91f2
Add a connection parameter to the PurpleProtocolActions.get_menu virtual function
Gary Kramlich <grim@reaperworld.com>
parents:
41960
diff
changeset
|
101 | purple_protocol_actions_get_menu(PurpleProtocolActions *actions, |
|
620d1adf91f2
Add a connection parameter to the PurpleProtocolActions.get_menu virtual function
Gary Kramlich <grim@reaperworld.com>
parents:
41960
diff
changeset
|
102 | PurpleConnection *connection) |
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
103 | { |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
104 | PurpleProtocolActionsInterface *iface = NULL; |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
105 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
106 | g_return_val_if_fail(PURPLE_IS_PROTOCOL_ACTIONS(actions), NULL); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
107 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
108 | iface = PURPLE_PROTOCOL_ACTIONS_GET_IFACE(actions); |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
109 | if(iface != NULL && iface->get_menu != NULL) { |
|
42004
620d1adf91f2
Add a connection parameter to the PurpleProtocolActions.get_menu virtual function
Gary Kramlich <grim@reaperworld.com>
parents:
41960
diff
changeset
|
110 | return iface->get_menu(actions, connection); |
|
41437
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
111 | } |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
112 | |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
113 | return NULL; |
|
05ac40f0e0c4
Add a protocol actions interface
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff
changeset
|
114 | } |
|
42009
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
115 | |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
116 | void |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
117 | purple_protocol_actions_changed(PurpleProtocolActions *actions, |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
118 | PurpleAccount *account) |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
119 | { |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
120 | g_return_if_fail(PURPLE_IS_PROTOCOL_ACTIONS(actions)); |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
121 | g_return_if_fail(PURPLE_IS_ACCOUNT(account)); |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
122 | |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
123 | g_signal_emit(actions, signals[SIG_ACTIONS_CHANGED], 0, account); |
|
fb172b78a9ee
Replace the account-actions-changed signal with an actions-changed signal on PurpleProtocolActions
Gary Kramlich <grim@reaperworld.com>
parents:
42004
diff
changeset
|
124 | } |