gtk2: remove checkbox from menu item if Image and Check are not needed

git-svn-id: trunk@20195 -
This commit is contained in:
paul 2009-05-25 09:37:04 +00:00
parent fe6e112d79
commit 9edbd4c618

View File

@ -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 }