[Gtk-sharp-list] Gtk Idle handler and Win32.

Miguel de Icaza miguel@ximian.com
Sat, 30 Apr 2005 14:10:57 -0400


--=-WzQFF6PtyEJq++Jdg6Jg
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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.



--=-WzQFF6PtyEJq++Jdg6Jg
Content-Disposition: attachment; filename=t.cs
Content-Type: text/x-csharp; name=t.cs; charset=ISO-8859-1
Content-Transfer-Encoding: base64

dXNpbmcgR3RrOw0KdXNpbmcgU3lzdGVtOw0KdXNpbmcgR0xpYjsNCg0KY2xhc3MgWCB7DQoJc3Rh
dGljIExhYmVsIGw7DQoJc3RhdGljIHZvaWQgTWFpbiAoKQ0KCXsNCgkJQXBwbGljYXRpb24uSW5p
dCAoKTsNCgkJV2luZG93IHcgPSBuZXcgV2luZG93ICgiYSIpOw0KCQlsID0gbmV3IExhYmVsICgi
QSIpOw0KCQlHTGliLklkbGUuQWRkIChuZXcgSWRsZUhhbmRsZXIgKGkpKTsNCgkJdy5BZGQgKGwp
Ow0KCQl3LlNob3dBbGwgKCk7DQoJCUFwcGxpY2F0aW9uLlJ1biAoKTsNCgl9DQoNCglzdGF0aWMg
Ym9vbCBpICgpDQoJew0KCQlsLlRleHQgPSBEYXRlVGltZS5Ob3cuVG9TdHJpbmcgKCk7DQoJCXJl
dHVybiB0cnVlOw0KCX0NCn0NCgkNCg==


--=-WzQFF6PtyEJq++Jdg6Jg--