added TMenuItem ImageIndex support for gtk

git-svn-id: trunk@8074 -
This commit is contained in:
mattias 2005-11-06 11:02:21 +00:00
parent 285c581bca
commit c33f18f1a2
2 changed files with 2 additions and 2 deletions

View File

@ -5538,7 +5538,7 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TGtkWidgetSet.AssignSelf(Child,Data : Pointer); procedure TGtkWidgetSet.AssignSelf(Child,Data : Pointer);
begin begin
gtk_Object_Set_Data(Pgtkobject(Child),'Self',Data); gtk_Object_Set_Data(Pgtkobject(Child),'Self',Data);
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------

View File

@ -5338,7 +5338,7 @@ begin
Width:=0; Width:=0;
Height:=0; Height:=0;
if LCLMenuItem=nil then exit; if LCLMenuItem=nil then exit;
if LCLMenuItem.HasBitmap then if LCLMenuItem.HasIcon then
GetGdkPixmapFromGraphic(LCLMenuItem.Bitmap,IconImg,IconMask,Width,Height); GetGdkPixmapFromGraphic(LCLMenuItem.Bitmap,IconImg,IconMask,Width,Height);
end; end;