DBUS glibc simple code problem

Sadrul Habib Chowdhury imadil at gmail.com
Wed Mar 26 03:29:48 EDT 2008

This is a pretty old post, and the OP has probably resolved the issue by
now. I am going to respond anyway! I should also mention that I don't
know much about DBUS foo. 

* flying match had this to say on [19 Feb 2008, 11:20:21 -0800]:
> The code is complied, but just cannot get any received-im-msg notification
> no matter how hard I try.  I wonder if anyone could spend some time helping
> me find the reason (guess could be very stupid anyway)? If I managed to get
> the code run as smoothly as that purple-notifications-example, I'll submit
> to the web page to share with the community.

I looked at the tutorial at
and following the tutorial, the attached code works for me.

When I run your code, I get a  runtime warning ("No marshaller for
signature of signal 'ReceivedImMsg'"). I tried adding a marshaller with
dbus_g_object_register_marshaller, but that didn't work either. I don't
really know whether that's the correct way of doing it or not. If you
do find a proper fix, perhaps you could let us know!

> Couple of questions if you are still reading:
> 1. Unlike Pidgin dbus methods which can be viewed by dbus-viewer, dbus
> signals don't have any definitions. As a result, I have no way to know the
> parameters associated with each signal. I.e., I'm just guessing what
> parameters associated with signal ReceviedImMsg above.

Ticket #3243 (http://developer.pidgin.im/ticket/3243) probably has
something to do with this.

> 2. The dbus_g_proxy_add_signal() and dbus_g_proxy_connect_signal() do not
> return any failure, so I don't know if my signal handler is added
> successfully or not. I tried to change different parameters associated with
> the ReceivedImMsg signal, given any parameter, the code can compile and run,
> but just don't actually work.

I got the above mentioned error message. I think the signal handler is
not being added correctly because there's no marshaller for the signal
(and not because the signature of the signal you create in
 _add_signal may be incorrect).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-example.c
Type: text/x-csrc
Size: 1395 bytes
Desc: not available
URL: <http://pidgin.im/pipermail/devel/attachments/20080326/111e9f0b/attachment-0002.c>

More information about the Devel mailing list