mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 13:56:05 +02:00
gtk2: remove checkbox from menu item if Image and Check are not needed
git-svn-id: trunk@20195 -
This commit is contained in:
parent
fe6e112d79
commit
9edbd4c618
@ -405,7 +405,8 @@ class procedure TGtk2WSMenuItem.UpdateMenuIcon(const AMenuItem: TMenuItem;
|
||||
begin
|
||||
if not WSCheckMenuItem(AMenuItem, 'UpdateMenuIcon') then
|
||||
Exit;
|
||||
// TODO
|
||||
if gtk_is_check_menu_item(Pointer(AMenuItem.Handle)) <> HasIcon then
|
||||
AMenuItem.RecreateHandle;
|
||||
end;
|
||||
|
||||
{ TGtk2WSMenu }
|
||||
|
Loading…
Reference in New Issue
Block a user