Mercurial > pidgin
diff src/protocols/trepia/trepia.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 | 294ae6548d4e |
children | 7f456c05b767 |
line wrap: on
line diff
--- a/src/protocols/trepia/trepia.c Sat May 22 17:20:27 2004 +0000 +++ b/src/protocols/trepia/trepia.c Sat May 22 17:33:38 2004 +0000 @@ -430,16 +430,14 @@ } static GList * -trepia_actions(GaimConnection *gc) +trepia_actions(GaimPlugin *plugin, gpointer context) { GList *m = NULL; - struct proto_actions_menu *pam; + GaimPluginAction *act; - pam = g_new0(struct proto_actions_menu, 1); - pam->label = _("Set Profile"); - pam->callback = set_profile; - pam->gc = gc; - m = g_list_append(m, pam); + act = gaim_plugin_action_new(_("Set Profile"), + set_profile); + m = g_list_append(m, act); return m; } @@ -1215,7 +1213,6 @@ trepia_status_text, trepia_tooltip_text, NULL, - trepia_actions, trepia_buddy_menu, NULL, trepia_login, @@ -1290,7 +1287,7 @@ NULL, /**< ui_info */ &prpl_info, /**< extra_info */ NULL, - NULL + trepia_actions }; static void