mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 11:01:20 +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
|
||||
WClient: PGTKAPIWidgetClient;
|
||||
begin
|
||||
Result := gtk_false;
|
||||
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
|
||||
Result := gtk_true
|
||||
else
|
||||
Result := gtk_false;
|
||||
begin
|
||||
WClient^.Caret.BlinkHide := not WClient^.Caret.BlinkHide;
|
||||
GTKAPIWidgetClient_DrawCaret(Client,true);
|
||||
if WClient^.Caret.Timer <> 0 then
|
||||
Result := gtk_true;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure GTKAPIWidgetClient_Realize(AWidget: PGTKWidget); cdecl;
|
||||
|
Loading…
Reference in New Issue
Block a user