comp.lang.ada
 help / color / mirror / Atom feed
From: Julian Leyh <julian@vgai.de>
Subject: Re: gtkada and timeouts
Date: Fri, 1 Apr 2011 01:50:59 -0700 (PDT)
Date: 2011-04-01T01:50:59-07:00	[thread overview]
Message-ID: <ed10b192-03d8-49f7-9beb-613458681d7a@e8g2000vbz.googlegroups.com> (raw)
In-Reply-To: 76005a0b-51c6-46c3-9cd3-976d7d7a050e@dr5g2000vbb.googlegroups.com

On 1 Apr., 10:09, tonyg <tonytheg...@gmail.com> wrote:
> 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?

Gtk.Main.Main never returns.



  parent reply	other threads:[~2011-04-01  8:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01  8:09 gtkada and timeouts tonyg
2011-04-01  8:27 ` Dmitry A. Kazakov
2011-04-01  9:15   ` tonyg
2011-04-01  9:53     ` tonyg
2011-04-01  8:50 ` Julian Leyh [this message]
2011-04-02  1:37   ` Randy Brukardt
2011-04-02  8:21     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox