Re: popup menu does not disappear



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.


-- 
- Tommi



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