gtk, gtk2: fix popup menu popup - set activation time as gtk docs require to resove mouse capture conflicts (resolves issue #0009435)

git-svn-id: trunk@20847 -
This commit is contained in:
paul 2009-07-13 03:34:51 +00:00
parent 1062d0b0aa
commit 5119208a5d

View File

@ -425,7 +425,12 @@ begin
TGtkMenuPositionFunc(AProc),
@APoint,
0,
0);
{$ifdef gtk1}
gdk_event_get_time(gtk_get_current_event)
{$else}
gtk_get_current_event_time()
{$endif}
);
{Displays a menu and makes it available for selection. Applications
can use this function to display context-sensitive menus, and will
typically supply NULL for the parent_menu_shell, parent_menu_item,