Hello,

[ I added Jon which reported this in the past as well ]

I am unable to reproduce the problem with Mono 1.1.6:

> > > Can someone confirm WakeupMain() is supposed to work even I don't have
> > > focus on the GTK application ? My example doesn't and works only when
> > > I move the mouse over the gtk application (the method addLineT isn't
> > > called at all).
> > 
> > Is this on Windows?   I heard that apparently there is a problem with
> > Idle events not being dispatched on Windows.
> 
> Yes it is. What can I do to help ? 
> 
> It's really an important feature, I don't understand noone had the
> problem before.

I wrote a small Gtk# program and am running Mono 1.1.6, and the Idle
handler is working just fine for me.

To compile use:

        mcs -pkg:gtk-sharp t.cs

To run:

        mono t.exe

Maybe you have an old version of Mono installed?   

Miguel.


using Gtk;
using System;
using GLib;

class X {
	static Label l;
	static void Main ()
	{
		Application.Init ();
		Window w = new Window ("a");
		l = new Label ("A");
		GLib.Idle.Add (new IdleHandler (i));
		w.Add (l);
		w.ShowAll ();
		Application.Run ();
	}

	static bool i ()
	{
		l.Text = DateTime.Now.ToString ();
		return true;
	}
}
	

Reply via email to