[Gtk-sharp-list] Gtk.Timeout parameters
Richard Torkar
richard.torkar@htu.se
Tue, 28 Oct 2003 07:12:05 +0100
On Mon, 2003-10-27 at 08:57, Leo Spalteholz wrote:
> I'm trying to use a Gtk.Timeout but can't figure out how to use the Add()
> function. The second argument calls for a Gtk.Function that will be
> called every interval until the function returns false. I have this:
>
> Gtk.Timeout.Add(2000, CheckButton);
>
> private bool CheckButton() {}
>
> But I get the error:
> Method `OpenSpeechSystem.TextScreen.CheckButton()' is referenced without
> parentheses
>
Could it be like this:
Gtk.TimeOut.Add (2000, CheckButton ());
?
/Richard
--