Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=H7ngoRPa+RkK7mFZxm2Gy2/us7KzrDhefnJq+6QuOzc=; b=YiCPclmhCTUWrBybkO3ifCaZBiuy7cVEPapso3zM9kysLY8wz5xqsFQOcdkXz8zOff kEru38N+LKqwjqAx4txxWfRwdVlxEd51iXXMlbHkJ93hEM/csBcEzQAd6Y96QlAHqCLH zQQg7Z95eHvKCma5vyr87LmqhovIm9I6dI5jc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rG4KeeIX82yZofrtig0LGZTYN/rW59iahfMItwL3JgPEBg/I2Vq6iCfyq1TqfWWsCV thUs+2+v1d7Q3VwfoWVQXAY19p27w6AR/fjUc0RqwaVDzG/b049NC2sDAOr7R4Jz9Av+ CdPa1SIrOVhgNBqiFfTVh/Jv7CDeO+NyH/AB0= MIME-Version: 1.0 Date: Wed, 15 Sep 2010 17:03:30 +0200 Message-ID: From: Johan Mazel To: lablgtk at yquem.inria.fr Subject: [Lablgtk] Update of window through GMain.Timeout and "gdk_window_invalidate_rect" Content-Type: multipart/mixed; boundary="===============0435240104==" Mime-version: 1.0 Status: U --===============0435240104== Content-Type: multipart/alternative; boundary=001636427152f046c604904da1ff --001636427152f046c604904da1ff Content-Type: text/plain; charset=ISO-8859-1 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 --001636427152f046c604904da1ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am currently trying to learn lablgtk through translating this example (htt= p://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 (whic= h can be added in Ocaml by GMain.Timeout.add) in order to launch periodical= ly a function that update the window.
This function is called gtk.gdk.Wi= ndow.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. inval= idate) 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 adv= ance for your time.

Regards.
Johan Mazel
--001636427152f046c604904da1ff-- --===============0435240104== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk --===============0435240104==--