fixed gtk Frame3d

git-svn-id: trunk@8650 -
This commit is contained in:
mattias 2006-01-28 23:19:18 +00:00
parent 35d85a8f2f
commit d099feb7f8

View File

@ -3954,7 +3954,7 @@ const GTKStrongShadowType: array[TBevelCut] of integer =
(GTK_SHADOW_NONE, GTK_SHADOW_ETCHED_IN, GTK_SHADOW_ETCHED_OUT, GTK_SHADOW_NONE);
var
//Widget, ClientWidget: PGtkWidget;
Widget, ClientWidget: PGtkWidget;
i : integer;
DCOrigin: TPoint;
TheStyle: PGtkStyle;
@ -3975,6 +3975,14 @@ begin
Result:= False;
exit;
end;
Widget:=PGtkWidget(TDeviceContext(DC).Wnd);
ClientWidget:=Widget;
if Widget<>nil then begin
ClientWidget:=GetFixedWidget(Widget);
if ClientWidget=nil then
ClientWidget:=Widget;
end;
AWindow:=Drawable;
DCOrigin:=GetDCOffset(TDeviceContext(DC));
Area.X:=ARect.Left+DCOrigin.X;
@ -3995,8 +4003,8 @@ begin
AWindow, GTK_STATE_NORMAL,
ShadowType,
@Area,
{ClientWidget}nil,
{'button'}nil,
ClientWidget,
'button',
ARect.Left+DCOrigin.X, ARect.Top+DCOrigin.Y,
ARect.Right-ARect.Left, ARect.Bottom-ARect.Top);
// inflate the rectangle (! ARect will be returned to the user with this)