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

On Sat, 2003-01-04 at 02:21, Rus Hughes wrote:
> Hi,
> 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,

See the various *Proxy classes in the gtkmm .ccg files - for instance,
gtk/src/treeselection.ccg, I think.

Murray Cumming
murray usa net

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