Re: popup menu does not disappear
- From: "Komulainen Tommi (Nokia-M/Helsinki)" <tommi komulainen nokia com>
- To: gtk-list gnome org
- Subject: Re: popup menu does not disappear
- Date: Thu, 26 Aug 2004 10:06:18 +0300
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]