pidgin plugin dev support - problem in disconnecting account

evanescent coolnuwan at gmail.com
Thu Oct 1 00:45:34 EDT 2009


Hi All,
I have been waiting for a response to this from someone who know the pidgin
in and out.
may be my question is not clear.
lets think like this.
there is a tick boxes in Account->Manage Account window to disconnect pidgin
account.
now i need to perform the same functionality inside from the program.
So what are the relevant methods to do this. Program structure of my  plugin
follows almost same program structure of Bonjour protocol implemented.

thanks

---------- Forwarded message ----------
From: evanescent <coolnuwan at gmail.com>
Date: Wed, Sep 30, 2009 at 11:01 AM
Subject: pidgin crashes when account disconnected internally
To: support at pidgin.im, devel at pidgin.im


Hi,
I have developed a pidgin plugin that works almost like Bonjour.
In my program I need to disconnect an account calling relevant methods
internally. i.e not by clicking the tick boxes given in the GUI.
What I have done so far in the program is that at the point where I want to
disconnect the account I have called the following methods.
Although it disconnects the account it also leads some problems such as
1) tick box remain ticked when next time I open Account->Manage Account
window.
2)Occasionally pidgin crashes.

[code]

somemethod()
{
          // some code

        if(connection)
        {
          bonjour_close(connection);
          purple_connection_destroy(connection);
        }
        connection = NULL;
}
[/code]

what has gone wrong with this sequence ?


thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20091001/bdb3ea3e/attachment.html>


More information about the Devel mailing list