mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 02:19:15 +02:00
gtk: reduce amount of gtk warnings in console produced by DrawFrameControl
git-svn-id: trunk@12219 -
This commit is contained in:
parent
7fd0499fa1
commit
4f1340e5d6
@ -2579,7 +2579,7 @@ var
|
|||||||
State,
|
State,
|
||||||
Shadow,
|
Shadow,
|
||||||
nil,
|
nil,
|
||||||
Widget,
|
GetStyleWidget(lgsButton),
|
||||||
'button',
|
'button',
|
||||||
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
||||||
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top)
|
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top)
|
||||||
@ -2588,7 +2588,7 @@ var
|
|||||||
State,
|
State,
|
||||||
Shadow,
|
Shadow,
|
||||||
nil,
|
nil,
|
||||||
Widget,
|
GetStyleWidget(lgsButton),
|
||||||
'button',
|
'button',
|
||||||
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
Rect.Left+DCOrigin.X,Rect.Top+DCOrigin.Y,
|
||||||
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top);
|
Rect.Right-Rect.Left,Rect.Bottom-Rect.Top);
|
||||||
@ -2658,10 +2658,12 @@ var
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var ClientWidget: PGtkWidget;
|
var
|
||||||
|
ClientWidget: PGtkWidget;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
if IsValidDC(DC) then begin
|
if IsValidDC(DC) then
|
||||||
|
begin
|
||||||
Widget:=TDeviceContext(DC).DCWidget;
|
Widget:=TDeviceContext(DC).DCWidget;
|
||||||
ClientWidget:=GetFixedWidget(Widget);
|
ClientWidget:=GetFixedWidget(Widget);
|
||||||
if ClientWidget<>nil then
|
if ClientWidget<>nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user