Mercurial > pidgin.yaz
comparison src/protocols/gg/gg.c @ 9015:67421e0dc497
[gaim-migrate @ 9791]
(05:54:53) siege: that's the first pass on merging the two action sources
(05:55:27) siege: using it right now, seems to be working fine. You may
want to look it over though...
(05:56:04) siege: found a small mem-leak in a GList getting created and not
destroyed, this fixes that as well
(13:20:40) KingAnt: LSchiere: Well it's probably ok. I haven't even had a
chance to look at the commit for the other thing
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 22 May 2004 17:33:38 +0000 |
parents | 8bf2c6122bf1 |
children | 7ab20f829190 |
comparison
equal
deleted
inserted
replaced
9014:51b5b3a622ce | 9015:67421e0dc497 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 9772 2004-05-21 12:07:26Z lschiere $ | 3 * $Id: gg.c 9791 2004-05-22 17:33:38Z lschiere $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
922 | 922 |
923 g_free(buf); | 923 g_free(buf); |
924 } | 924 } |
925 | 925 |
926 static void | 926 static void |
927 change_pass(GaimConnection *gc) | 927 change_pass(GaimPluginAction *action) |
928 { | 928 { |
929 gaim_account_request_change_password(gaim_connection_get_account(gc)); | 929 GaimConnection *gc = (GaimConnection *) action->context; |
930 GaimAccount *account = gaim_connection_get_account(gc); | |
931 gaim_account_request_change_password(account); | |
930 } | 932 } |
931 | 933 |
932 #if 0 | 934 #if 0 |
933 static void import_buddies_server_results(GaimConnection *gc, gchar *webdata) | 935 static void import_buddies_server_results(GaimConnection *gc, gchar *webdata) |
934 { | 936 { |
1389 g_free(hpass); | 1391 g_free(hpass); |
1390 return; | 1392 return; |
1391 } | 1393 } |
1392 } | 1394 } |
1393 | 1395 |
1394 static GList *agg_actions(GaimConnection *gc) | 1396 static GList *agg_actions(GaimPlugin *plugin, gpointer context) |
1395 { | 1397 { |
1396 GList *m = NULL; | 1398 GList *m = NULL; |
1397 struct proto_actions_menu *pam; | 1399 GaimPluginAction *act = NULL; |
1398 | 1400 |
1399 #if 0 | 1401 #if 0 |
1400 pam = g_new0(struct proto_actions_menu, 1); | 1402 act = gaim_plugin_action_new(_("Directory Search"), show_find_info); |
1401 pam->label = _("Directory Search"); | 1403 m = g_list_append(m, act); |
1402 pam->callback = show_find_info; | |
1403 pam->gc = gc; | |
1404 m = g_list_append(m, pam); | |
1405 | |
1406 m = g_list_append(m, NULL); | 1404 m = g_list_append(m, NULL); |
1407 #endif | 1405 #endif |
1408 | 1406 |
1409 pam = g_new0(struct proto_actions_menu, 1); | 1407 act = gaim_plugin_action_new(_("Change Password"), change_pass); |
1410 pam->label = _("Change Password"); | 1408 m = g_list_append(m, act); |
1411 pam->callback = change_pass; | |
1412 pam->gc = gc; | |
1413 m = g_list_append(m, pam); | |
1414 | 1409 |
1415 #if 0 | 1410 #if 0 |
1416 m = g_list_append(m, NULL); | 1411 act = gaim_plugin_action_new(_("Import Buddy List from Server"), |
1417 pam = g_new0(struct proto_actions_menu, 1); | 1412 import_buddies_server); |
1418 pam->label = _("Import Buddy List from Server"); | 1413 m = g_list_append(m, act); |
1419 pam->callback = import_buddies_server; | 1414 |
1420 pam->gc = gc; | 1415 act = gaim_plugin_action_new(_("Export Buddy List to Server"), |
1421 m = g_list_append(m, pam); | 1416 export_buddies_server); |
1422 | 1417 m = g_list_append(m, act); |
1423 pam = g_new0(struct proto_actions_menu, 1); | 1418 |
1424 pam->label = _("Export Buddy List to Server"); | 1419 act = gaim_plugin_action_new(_("Delete Buddy List from Server"), |
1425 pam->callback = export_buddies_server; | 1420 delete_buddies_server); |
1426 pam->gc = gc; | 1421 m = g_list_append(m, act); |
1427 m = g_list_append(m, pam); | |
1428 | |
1429 pam = g_new0(struct proto_actions_menu, 1); | |
1430 pam->label = _("Delete Buddy List from Server"); | |
1431 pam->callback = delete_buddies_server; | |
1432 pam->gc = gc; | |
1433 m = g_list_append(m, pam); | |
1434 #endif | 1422 #endif |
1435 | 1423 |
1436 return m; | 1424 return m; |
1437 } | 1425 } |
1438 | 1426 |
1540 agg_list_icon, | 1528 agg_list_icon, |
1541 agg_list_emblems, | 1529 agg_list_emblems, |
1542 NULL, | 1530 NULL, |
1543 NULL, | 1531 NULL, |
1544 agg_away_states, | 1532 agg_away_states, |
1545 agg_actions, | |
1546 agg_buddy_menu, | 1533 agg_buddy_menu, |
1547 NULL, | 1534 NULL, |
1548 agg_login, | 1535 agg_login, |
1549 agg_close, | 1536 agg_close, |
1550 agg_send_im, | 1537 agg_send_im, |
1615 NULL, /**< destroy */ | 1602 NULL, /**< destroy */ |
1616 | 1603 |
1617 NULL, /**< ui_info */ | 1604 NULL, /**< ui_info */ |
1618 &prpl_info, /**< extra_info */ | 1605 &prpl_info, /**< extra_info */ |
1619 NULL, | 1606 NULL, |
1620 NULL | 1607 agg_actions |
1621 }; | 1608 }; |
1622 | 1609 |
1623 static void | 1610 static void |
1624 init_plugin(GaimPlugin *plugin) | 1611 init_plugin(GaimPlugin *plugin) |
1625 { | 1612 { |