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

Re: real time display question in gtk



On Mon, Apr 01, 2002 at 02:00:33PM -0800, Taura Milana wrote:
> Yes, I've done this before.
> 
> You really need to know the GTK timeout callbacks
> and how to optimize them, along with using GDK RGB
> buffers for drawing output really helps.
> 
> Have your callback check for the network stats as
> often as possible, and directly update the GtkDrawable
> (or whereever you are drawing out to) as quickly as
> possible.
> 
> Remember, optimul use of GTK timeout callbacks and
> GDK RGB buffers.   If you have any specific questions
> let me know.
---end quoted text---

I just put the socket file descriptor into a gdk_input_add () and got a callback
for it at all the time something arrives.. and at this callback, I update the
screen..
At least for me, it worked.. :)
But yes, if you update it too fast, you'll get just a flashing window..

[]'s
-- 
Marcelo R Leitner <mrl@netbank.com.br>
ICQ #: 29966851



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