Update of window through GMain.Timeout and "gdk_window_invalidate_rect"

Johan Mazel <[email protected]> Wed, 15 Sep 2010 17:03:30 +0200
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
I am currently trying to learn lablgtk through translating this example (
http://www.ralph-glass.homepage.t-online.de/clock/readme.html) in Ocaml.
The graphical part is working.
The code in python is using a timer (which can be added in Ocaml by
GMain.Timeout.add) in order to launch periodically a function that update
the window.
This function is called gtk.gdk.Window.invalidate_rect in PyGTK and
gdk_window_invalidate_rect in GTK.
However, I cannot find any function by that name or a name close (eg.
invalidate) in lablgtk.

I tried to call the rewriting of the whole window through the timer but it
produces an hideous effect close to the vertical refresh on a CRT monitor.

Thanks in advance for your time.

Regards.
Johan Mazel

_______________________________________________
Lablgtk mailing list
[email protected]
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk