libpurple / Friendly name

Cedric Roche csced at hotmail.com
Thu Sep 10 12:06:51 EDT 2009


No I didn't. But now that I did, the callback is indeed entering the request_input function. But I can see in the prototype of request_input anything corresponding to a parameter (friendly name) I want to change. I tried user_data but did'nt work.

Actualy I still have no idea how to do that. This is very frustrating because changing the user name must be a very basic option.

Thx

> Date: Wed, 9 Sep 2009 07:21:37 -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
> 
> Hmm, that's strange.  Have you implemented a callback function for
> PurpleRequestUiOps->request_input?
> 
> Yes, I believe this is the only way to set your MSN friendly name.
> Yes, it is not ideal.  We should probably add a "set_nickname" or
> "set_my_nickname" function or something to PurplePluginProtocolInfo.
> 
> -Mark
> 
> On Wed, Sep 9, 2009 at 5:10 AM, Cedric Roche<csced at hotmail.com> wrote:
> > My program don't get prompted.
> > So you are saying that there is no way to just call the callback and  give
> > the Friendly name I want to use ?
> >
> > How don't see how that must be done in my code.
> >
> >
> > Thx
> > Cedric
> >
> >> Date: Tue, 8 Sep 2009 10:21:00 -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
> >>
> >> Calling this function causes the MSN protocol plugin to call
> >> purple_request_input() to prompt the user to enter the friendly name
> >> to use. You can either show that request to the user and have them
> >> respond to it, or you can intercept it and call the appropriate
> >> callback function in your UI-specific request code (if you do this,
> >> you should probably call the function from a timeout or idle
> >> callback).
> >>
> >> -Mark
> >>
> >> On Tue, Sep 8, 2009 at 5:14 AM, Cedric Roche<csced at hotmail.com> wrote:
> >> > 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 !

_________________________________________________________________
Messenger débarque dans Hotmail ! Essayez-le !
http://www.windowslive.fr/hotmail/web-messenger/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20090910/afcf5b45/attachment-0001.html>


More information about the Devel mailing list