StatusIcon / threads



Hi,

First of all, my application uses PyGTK, but I think that this issue is GTK related. Correct me if I'm wrong.

I use a StatusIcon. I added a handler for popup-menu event. In this handler I get a menu from a glade file, and I call menu.popup()

but on this line I get a warning:
Warning: g_main_context_prepare(): main loop already active in another thread.

If in the handler I do idle_add(my_function) everything goes well, but is it normal to get this kind of warning?

I use GTK 2.10.11 from gladewin32, and pygtk 2.10.6.
--
Yann


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]