fast timeout




Hello all.

I need to update very frequently a canvas, and in meantime I need to still
get control of my buttons in the app.
For now the only solution I've found is to use gtk_timeout_add, but it's too
much slow...

The ideal solution would be to fork and create a process which updates my 
canvas all the time, but I can't because of these damn 
Xlib: unexpected async reply (sequence 0x15a)!
(Well: not using X resources I don't get them... but I can't do what I want).

Can you help me?

Ah... another question: is there a safe way to throw away all the contents of 
a canvas rapidly?
For now I destroy its container. It's a bit slow and I get a warning message:

Gtk-CRITICAL **: file gtkcontainer.c: line 704 (gtk_container_remove): 
assertion `GTK_IS_WIDGET (widget)' failed.

It's container is directly app->contents .



Excuse me for my horrible english.

-- 
Ciao, Andrea



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