Re: Timers in GTK
- From: Marco Quezada <mquezada nlxcorp com>
- To: G Hasse <gh raditex se>
- Cc: Petro Verheuvel <pverheuvel zonnet nl>, gtk-app-devel-list gnome org
- Subject: Re: Timers in GTK
- Date: Mon, 04 Feb 2002 10:52:09 -0500
Any example code to look at for this?
Thanks
G Hasse wrote:
On Sat, 2 Feb 2002, Petro Verheuvel wrote:
Hi there,
I have an application using setitimer(). I want to integrate this in GTK.
GTK has some timer-capabilities too. Can these timer concepts be
simultaneously used, or should i omit the use of setitimer() in GTK ?
It is my strong opinion that you should try to avoid all strict
timeing in your UI.
Make a separate process and let this notify your UI when it has
completed. (Preferable by a file descriptor. And you add a callback with
gdk_input_add( fd, GDK_INPUT_READ, GTK_SIGNAL_FUNC(file_function),
&cmdinfo );
So when your background process put data to fd the UI will go to
"file_function" and process this. If you make fd a socket you could
even distribut your background process.
GH
----------------------------------------------------------------
Göran Hasse email: gh raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se
Sickla Alle 7, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN
_________
______________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]