D-BUS and uread messages.

Viacheslav Chumushuk viacheslav88 at gmail.com
Mon Aug 11 12:53:27 EDT 2008

On Sun, Aug 10, 2008 at 10:39:32AM -0500, Casey Harkins wrote:
> The docklet uses the pidgin_conversation_find_unseen_list() function,
> which returns a list of conversations with unread messages. The function
> takes a parameter for the maximum number of conversations to return. So,
> if you're only interested in a boolean value, you can set the maximum to
> 1 and the function will return immediately when one conversation is
> encountered with an unread message.
> http://developer.pidgin.im/doxygen/2.0.0/html/gtkconv_8h.html#8ff09fe4677ba4e443d8633f4bde1b00

Thanks. It is what I need, but I have next problem. I made next Pytho code
like wiki says:

---[ code start ]---
import dbus;


bus = dbus.SessionBus()
obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")

foo = purple.pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_IM, PIDGIN_UNSEEN_TEXT, False, 10);

print "Foo: ", foo
---[ code end ]---

But I have next error:
Traceback (most recent call last):
File "test.py", line 14, in <module>
foo = purple.pidgin_conversations_find_unseen_list(PURPLE_CONV_TYPE_IM, PIDGIN_UNSEEN_TEXT, False, 10);
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in __call__ return self._proxy_method(*args, **keywords)
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__ **keywords)
File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "pidgin_conversations_find_unseen_list" with
signature "iibi" on interface "im.pidgin.purple.PurpleInterface" doesn't exist

I think that pidgin_conversations_find_unseen_list function is in
another interface. How to call it in right way?

Best regards, Viacheslav.

More information about the Devel mailing list