RV: GObject
- From: "Jorge Monsalvo" <jm_tecno2002 yahoo com ar>
- To: <gtk-app-devel-list gnome org>
- Subject: RV: GObject
- Date: Mon, 7 Mar 2005 18:18:50 -0300
-----Mensaje original-----
De: Jorge Monsalvo [mailto:jm_tecno2002 yahoo com ar]
Enviado el: Lunes, 07 de Marzo de 2005 14:26
Para: 'Tristan Van Berkom'
Asunto: RE: GObject
Thanks Tristan,
When I said "..run in the main loop.." I mean that the object must "do
something" during its life. What I want to do is execute one object
method (main object routine) from a timeout event, and this method could
decide to fire a signal, getting special care in how many time the pack
of routines used to keep inside the timeout lapse.
Regards
Jorge
-----Mensaje original-----
De: Tristan Van Berkom [mailto:tristan van berkom gmail com]
Enviado el: Lunes, 07 de Marzo de 2005 13:50
Para: Jorge Monsalvo
CC: gtk-app-devel-list gnome org
Asunto: 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
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]