mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:20:34 +02:00
GTK2: clean up caret timer-handler
git-svn-id: trunk@27171 -
This commit is contained in:
parent
dcb7c549f9
commit
2c75806565
@ -331,18 +331,15 @@ function GTKAPIWidgetClient_Timer(Client: Pointer): GTKEventResult; cdecl;
|
|||||||
var
|
var
|
||||||
WClient: PGTKAPIWidgetClient;
|
WClient: PGTKAPIWidgetClient;
|
||||||
begin
|
begin
|
||||||
|
Result := gtk_false;
|
||||||
WClient := PGTKAPIWidgetClient(Client);
|
WClient := PGTKAPIWidgetClient(Client);
|
||||||
if WClient^.Caret.Timer <= 0 then
|
|
||||||
begin
|
|
||||||
Result := gtk_false;
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
WClient^.Caret.BlinkHide := not WClient^.Caret.BlinkHide;
|
|
||||||
GTKAPIWidgetClient_DrawCaret(Client,true);
|
|
||||||
if WClient^.Caret.Timer <> 0 then
|
if WClient^.Caret.Timer <> 0 then
|
||||||
Result := gtk_true
|
begin
|
||||||
else
|
WClient^.Caret.BlinkHide := not WClient^.Caret.BlinkHide;
|
||||||
Result := gtk_false;
|
GTKAPIWidgetClient_DrawCaret(Client,true);
|
||||||
|
if WClient^.Caret.Timer <> 0 then
|
||||||
|
Result := gtk_true;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure GTKAPIWidgetClient_Realize(AWidget: PGTKWidget); cdecl;
|
procedure GTKAPIWidgetClient_Realize(AWidget: PGTKWidget); cdecl;
|
||||||
|
Loading…
Reference in New Issue
Block a user