Re: [gtk-list] Re: problem with gtk_signal_connect_object



robert havoc pennington wrote:
 
> gtk_signal_connect_object() doesn't actually do anything to the
> "receiver," I don't think, you could actually use any pointer you want
> there, or even NULL. The pointer is simply stored and passed to the
> callback.

Yes, it seems to be like that. But I think it should be different, 
gtk should take care connections to deleted objects,
since it knows that the connection goes to a GtkObject.

> If you need to remove a callback, you can save the return value of
> gtk_signal_connect and use that to remove the callback at a later time.

I could do this, but I think gtk should do that for me. In Qt (don't
flame me)
it works the same - if you connect to an object and then delete the
object,
the connection gets disconnected.



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