mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 07:29:30 +02:00
fixed gtk Frame3d
git-svn-id: trunk@8650 -
This commit is contained in:
parent
35d85a8f2f
commit
d099feb7f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user