Re: instance pointer from EmissionHook?



On 7 Jan 2002, Richard Hestilow wrote:

> I'm porting gnome sound events to gtk+2, and noticed that in an
> EmissionHook callback there doesn't seem to be any way to get a
> reference to the actual object that emitted the signal. Looking at
> gobject sources indicates that the pointer is known, just isn't
> accessible. Any ideas? This is pretty necessary for sound events,
> because there are some per-object things that need to be checked before
> playing anything.

g_value_get_object (param_values[0]);

> 
> -- Richard 
> 

---
ciaoTJ




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