Re: GtkStatusIcon and popup menu

2006-11-06 Thread Chris tophe
2006/11/7, Peter Lund <[EMAIL PROTECTED]>: The program I wrote earlier this year just uses the "button-press-event" > signal. In the handler I create a menu and connect a deactivation function > to its "deactive" signal. > > Seems to work fine. > > -Peter > Thanks for your answer. I can't do thi

Re: GtkStatusIcon and popup menu

2006-11-06 Thread Peter Lund
On Sun, 2006-11-05 at 18:31 +0100, Chris tophe wrote: > click somewhere out of it. I tried around, this problem doesn't happen when > calling gtk_menu_popup in response to a widget's "button-press-event"/button > == 3 for example, only in "popup-menu" callback. Any idea to make this menu > go awa

Re: socket question

2006-11-06 Thread Peter Lund
On Sun, 2006-11-05 at 19:08 -0500, Chris Cole wrote: > Is there anything like this for python? Did you set the socket to non-blocking mode? (man fcntl, look for O_NONBLOCK) -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:

Re: socket question

2006-11-06 Thread Chris Cole
Is there anything like this for python? Samuel Cormier-Iijima wrote: > I'm using the GNet library [1], which makes this kind of thing easier > with asynchronous (non-blocking) sockets. The callbacks will get run > in your main loop, so as long as the handler doesn't take too long to > run, the GUI