unable to enable the PurpleAccount.

Ka-Hing Cheung khc at pidgin.im
Sun Mar 29 17:57:51 EDT 2009

On Mon, Feb 23, 2009 at 07:19:22PM +0530, Nagesh wrote:
> Hi All,
> I have being using the PurpleInterface to communicate
> with the pidgin through dbus.
> I have used the following functions to connect to the pidgin
> and create a new account.
> account = intf.PurpleAccountNew(username, protocol_id);
> intf.PurpleAccountSetUsername(account, usernameWithDomain);
> intf.PurpleAccountSetPassword(account, password);
> intf.PurpleAccountConnect(account);
> intf.PurpleAccountRegister(account);

You don't want to call register manually, unless you want to create the
account _on the server_, and certainly you don't want to call both.

> I could able to create new account, but I could not
> enable it.
> I used below function with different combination's.
> public void PurpleAccountSetEnabled(int account, String ui, int value);
> PurpleAccountSetEnabled(4184,"gtk-gaim", 1);

This is right, the other 3 are not. What happens after you do that? Anything
in the debug log? Maybe try adding the account with PurpleAccountsAdd too.

> PurpleAccountSetEnabled(4184,"gtk-gaim", 0);
> PurpleAccountSetEnabled(4184,"prpl-jabber", 1);
> PurpleAccountSetEnabled(4184,"prpl-jabber", 0);


More information about the Support mailing list