mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 10:19:27 +02:00
Gtk2: fix mouse event when clicking on root item of main menu.issue #22616
git-svn-id: trunk@38345 -
This commit is contained in:
parent
20131f3434
commit
83001bf110
@ -101,7 +101,11 @@ begin
|
||||
begin
|
||||
WidgetInfo := GetWidgetInfo(Widget);
|
||||
if Assigned(TMenuItem(WidgetInfo^.LCLObject).OnClick) then
|
||||
begin
|
||||
gtk_menu_item_activate(PGtkMenuItem(Widget));
|
||||
// must be true because of issue #22616
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user