Re: popup menu does not disappear



Le jeu 26/08/2004 à 09:06, Komulainen Tommi (Nokia-M/Helsinki) a écrit :
> On Wed, 2004-08-25 at 20:27, ext Jean Bréfort wrote:
> 
> > gtk_menu_popup (GTK_MENU (w), NULL, NULL, NULL, NULL, 3, 
> > 		gtk_get_current_event_time ());
> > 
> > When the menu item is activated a first time, the callback is executed
> > but the popup menu does not disappear (it does if the menu item is
> > activated a secont time).
> > Do I miss something or is it a bug?
> 
> Only if you're reacting to mouse button events, the button number
> parameter for gtk_menu_popup should be non-zero (i.e. event->button)  In
> all other cases it must be zero or strange things like this seem to
> happen.

In my case, the menu appears after a right button click. Anyway,
changing the button parameter to 0 does not fix the problem.




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