libpurple / Friendly name

Cedric Roche csced at hotmail.com
Tue Sep 8 08:14:13 EDT 2009


Hi,

Thanks for the answer.

Yes that's exactly what I did. Here is my code :



            GList               *actions;
            GList               *l;
            PurplePluginAction  *action = NULL;
            actions = PURPLE_PLUGIN_ACTIONS(p, NULL);

            for (l = actions; l != NULL; l = l->next)
            {
                if (l->data)
                {
                    action = (PurplePluginAction *) l->data;
                    if ((strcmp(action->label, "Set Friendly Name...")) == 0)
                    {


                        action->callback(action);
                    }

                }
            }
If this is the good way to change the friendly name, how can I pass the name to the function ?


Thx


> Date: Mon, 7 Sep 2009 17:55:32 -0700
> Subject: Re: libpurple / Friendly name
> From: mark at kingant.net
> To: csced at hotmail.com
> CC: pidgin at unreliablesource.net; devel at pidgin.im
> 
> I think this email might help you:
> http://pidgin.im/pipermail/devel/2009-March/007833.html
> 
> It discusses MySpace's import friends function and not MSN's set
> friendly name function, but both functions are exposed to libpurple in
> the same manner.
> 
> -Mark
> 
> On Mon, Sep 7, 2009 at 4:17 AM, Cedric Roche<csced at hotmail.com> wrote:
> > Hi,
> >
> > I found the "Set Friendly Name..." callback function, but I don't know I to
> > use it...
> > I looked in the pidgin source and tried different stuff that don't work.
> >
> > How exactly must the function be called ?
> >
> > Thx
> >
> > Cedric
> >
> >> Date: Thu, 13 Aug 2009 20:42:39 -0400
> >> From: pidgin at unreliablesource.net
> >> To: csced at hotmail.com
> >> CC: devel at pidgin.im
> >> Subject: Re: libpurple / Friendly name
> >>
> >> On Thu, Aug 13, 2009 at 11:39:52AM +0200, Cedric Roche wrote:
> >> >
> >> > Hi,
> >> >
> >> > I'm looking for the method that changes the account friendly name /
> >> > alias. I don't find it in the account API.
> >> >
> >> > Thx
> >>
> >> It isn't in the account API, it is functionality exposed from the MSN prpl
> >> as an account action via PURPLE_PLUGIN_ACTIONS.
> >>
> >> -Etan
> >
> > ________________________________
> > Vous cherchez l'intégrale des clips de Michael Jackson ? Bing ! Trouvez !
> > _______________________________________________
> > Devel mailing list
> > Devel at pidgin.im
> > http://pidgin.im/cgi-bin/mailman/listinfo/devel
> >
> >

_________________________________________________________________
A la recherche de bons plans pour une rentrée pas chère ? Bing ! Trouvez !
http://www.bing.com/search?q=bons+plans+rentr%C3%A9e&form=MVDE6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20090908/259138a3/attachment-0001.html>


More information about the Devel mailing list