From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3f907d2172f83c8f,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!dr5g2000vbb.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: gtkada and timeouts Date: Fri, 1 Apr 2011 01:09:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <76005a0b-51c6-46c3-9cd3-976d7d7a050e@dr5g2000vbb.googlegroups.com> NNTP-Posting-Host: 82.46.232.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1301645376 29841 127.0.0.1 (1 Apr 2011 08:09:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Apr 2011 08:09:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: dr5g2000vbb.googlegroups.com; posting-host=82.46.232.121; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19622 Date: 2011-04-01T01:09:36-07:00 List-Id: I've written a function called update_screen which always returns a value of true and sets various values in the 'main_screen' access record. This is part of the code from glade/gate which I have modified to include a timeout with Gtk; use Gtk; with Gtk; use Gtk; with Gtk.Main; use Gtk.Main; with Gtk.Widget; use Gtk.Widget; with Main_Screen_Pkg; use Main_Screen_Pkg; with Main_Control; use Main_Control; procedure Main_Screen is Main_Screen : Main_Screen_Access; Timeout_Id : Timeout_Handler_id ; package Data_Timeout is new Gtk.Main.Timeout (Main_Screen_Access); begin Gtk.Main.Set_Locale; Gtk.Main.Init; Gtk_New (Main_Screen); Show_All (Main_Screen); Gtk.Main.Main; -- my addition -- the timer Timeout_Id := Data_Timeout.Add (100, Update_Screen'Access, Main_Screen); end Main_Screen; Sadly the timeout is never called, Can anyone cast some light on this?