[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk
Subject: Re: popup menu does not disappear
From: Jean =?ISO-8859-1?Q?Br=E9fort?= <jean.brefort () normalesup ! org>
Date: 2004-08-27 19:23:33
Message-ID: 1093634612.6352.2.camel () gericom ! brefort ! fr
[Download RAW message or body]
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.
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic