View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#55
Originally Posted by b666m View Post
just because they want a STRUCT and not an INT as parameter.

has anyone any idea how to solve this problem? :/

why does pidgin say that it sends a struct and my monitor recognizes an integer?

and are there maybe any cool G_TYPE_xxx for getting structs from dbus?
You're taking the API documentation too seriously. The page states that some changes will have to be made and, indeed, the equivalent D-Bus method call for, say, purple_account_get_protocol_name is PurpleAccountGetProtocolName.

Here's the major difference: The function takes a struct; the method call takes an PurpleAccount in the form of an int32, which is what the RecievedImMsg signal gives you.

Try, in X Terminal: dbus-send --session --type=method_call --print-reply --dest=im.pidgin.purple.PurpleService /im/pidgin/purple/PurpleObject im.pidgin.purple.PurpleInterface.PurpleAccountGetP rotocolName int32:1100

and you should realise what I mean.
 

The Following User Says Thank You to qwerty12 For This Useful Post: