[Mono-osx] Gtk# StatusIcon and Events
kenneth at hexad.dk
Fri Jul 30 09:42:20 EDT 2010
Alright, I managed to figure out what goes wrong.
In case someone else asks the same question, the answer is: "Yes, the
PopupMenu event works with the StatusIcon under OSX, but
Gtk.Application.Run() must be invoked from the main thread".
I have placed a small example of the issue here:
It seems as though the GTK main loop does not work under OSX, if the
invoking thread is not the main thread. The icon appears, but is
non-responsive and shows the "busy" cursor if hovering above it.
I have not investigated the cause of this problem, but I think I can fix it
for my own purposes, by simply running the Gtk eventloop in the main thread
and then run the WinForms loop in another thread, the oposite of what I am
View this message in context: http://mono.1490590.n4.nabble.com/Gtk-StatusIcon-and-Events-tp2295916p2307970.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx