Re: GObject



On Mon, 7 Mar 2005 12:22:14 -0300, Jorge Monsalvo 
[...]
What I want is create some "objects" that can run in the glib main loop
and send some signals when an event occurs. I said objects because I
want many instances of different kinds of objects.

Be carefull not to mix up object based GSource's and object oriented
GObject derivitave objects, a GSource is an event source that is either
a timeout or a file descriptor watch; some have implemented ipc mechanisms
with GSource or signal handleing as well.

A GSource dispatches an event from the main loop.

When a GObject emits a signal; the signal callbacks are executed regardless
of whether there is a main loop running or not (i.e. when an object method
is called that results in a signal being fired, all callbacks will have run and
completed before the said function returns).

HTH

Cheers,
                                                   -Tristan



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