libpurple/protocols/gg/gg.c

changeset 34435
5f8f4ad241d1
parent 34433
fa2313e5f320
parent 34333
b92698241603
child 34437
ca6d1b4d24b5
equal deleted inserted replaced
34434:e2b8c80078c0 34435:5f8f4ad241d1
178 static void ggp_action_buddylist_save(PurplePluginAction *action) 178 static void ggp_action_buddylist_save(PurplePluginAction *action)
179 { 179 {
180 PurpleConnection *gc = (PurpleConnection *)action->context; 180 PurpleConnection *gc = (PurpleConnection *)action->context;
181 181
182 purple_request_file(action, _("Save buddylist..."), NULL, TRUE, 182 purple_request_file(action, _("Save buddylist..."), NULL, TRUE,
183 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, 183 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL,
184 purple_connection_get_account(gc), NULL, NULL, 184 purple_request_cpar_from_connection(gc), gc);
185 gc);
186 } 185 }
187 186
188 static void ggp_action_buddylist_load(PurplePluginAction *action) 187 static void ggp_action_buddylist_load(PurplePluginAction *action)
189 { 188 {
190 PurpleConnection *gc = (PurpleConnection *)action->context; 189 PurpleConnection *gc = (PurpleConnection *)action->context;
191 190
192 purple_request_file(action, _("Load buddylist from file..."), NULL, 191 purple_request_file(action, _("Load buddylist from file..."), NULL,
193 FALSE, 192 FALSE, G_CALLBACK(ggp_callback_buddylist_load_ok), NULL,
194 G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, 193 purple_request_cpar_from_connection(gc), gc);
195 purple_connection_get_account(gc), NULL, NULL,
196 gc);
197 } 194 }
198 195
199 /* ----- BLOCK BUDDIES -------------------------------------------------- */ 196 /* ----- BLOCK BUDDIES -------------------------------------------------- */
200 197
201 static void ggp_add_deny(PurpleConnection *gc, const char *who) 198 static void ggp_add_deny(PurpleConnection *gc, const char *who)
921 table = g_hash_table_new(g_str_hash, g_str_equal); 918 table = g_hash_table_new(g_str_hash, g_str_equal);
922 g_hash_table_insert(table, "login_label", (gpointer)_("GG number...")); 919 g_hash_table_insert(table, "login_label", (gpointer)_("GG number..."));
923 return table; 920 return table;
924 } 921 }
925 922
926 static gsize 923 static gssize
927 ggp_get_max_message_size(PurpleConnection *gc) 924 ggp_get_max_message_size(PurpleConversation *conv)
928 { 925 {
929 /* it may depend on protocol version or other factors - check it */ 926 /* TODO: it may depend on protocol version or other factors */
930 return 1232; 927 return 1232;
931 } 928 }
932 929
933 static PurplePluginProtocolInfo prpl_info = 930 static PurplePluginProtocolInfo prpl_info =
934 { 931 {

mercurial