Mercurial > pidgin
diff plugins/idle.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 | c5825a04fb97 |
children | f8e395a054e2 |
line wrap: on
line diff
--- a/plugins/idle.c Sat May 22 17:20:27 2004 +0000 +++ b/plugins/idle.c Sat May 22 17:33:38 2004 +0000 @@ -7,7 +7,6 @@ #include "connection.h" #include "debug.h" -#include "multi.h" #include "plugin.h" #include "request.h" #include "server.h" @@ -39,7 +38,7 @@ static void -idle_action(GaimPlugin *plugin) +idle_action(GaimPluginAction *action) { /* Use the super fancy request API */ @@ -59,7 +58,7 @@ request = gaim_request_fields_new(); gaim_request_fields_add_group(request, group); - gaim_request_fields(plugin, + gaim_request_fields(action->plugin, N_("I'dle Mak'er"), _("Set Account Idle Time"), NULL, @@ -71,16 +70,14 @@ static GList * -actions(GaimPlugin *plugin) +actions(GaimPlugin *plugin, gpointer context) { GList *l = NULL; - struct plugin_actions_menu *pam; + GaimPluginAction *act = NULL; - pam = g_new0(struct plugin_actions_menu, 1); - pam->label = _("Set Account Idle Time"); - pam->callback = idle_action; - pam->plugin = plugin; - l = g_list_append(l, pam); + act = gaim_plugin_action_new(_("Set Account Idle Time"), + idle_action); + l = g_list_append(l, act); return l; }