[gtkmm] Connecting a C object's callback to a C++ class's method


I am trying to write an MP3 player using monkey-media in Gtkmm, the
problem is though that monkey-media is a C library, the example code
gives something like this :

g_signal_connect (G_OBJECT (mixer), "end_of_queue", G_CALLBACK
(monkey_media_mixer_end_of_queue_cb), NULL);

which is the C way of doing things, does anyone know if there is an easy
way to connect the callback to a class's method? Do I have to wrap the
entire library or something and make a libmonkey-mediamm type of thing?
(and if so how would I go about that).

Thanks for your time,

Rus Hughes <rus carpathia force9 co uk>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]