mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:56:00 +02:00
minor formatting
git-svn-id: trunk@19714 -
This commit is contained in:
parent
cc1aa6345c
commit
f3bff5ed70
@ -216,7 +216,7 @@ begin
|
|||||||
if not WSCheckHandleAllocated(ACustomEdit, 'SetSelLength') then
|
if not WSCheckHandleAllocated(ACustomEdit, 'SetSelLength') then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
TextView := PGtkTextView(GetWidgetInfo(Pointer(ACustomEdit.Handle), False)^.CoreWidget);
|
TextView := PGtkTextView(GetWidgetInfo(Pointer(ACustomEdit.Handle))^.CoreWidget);
|
||||||
TextBuffer := gtk_text_view_get_buffer(TextView);
|
TextBuffer := gtk_text_view_get_buffer(TextView);
|
||||||
SelStart := GetSelStart(ACustomEdit);
|
SelStart := GetSelStart(ACustomEdit);
|
||||||
|
|
||||||
@ -332,8 +332,7 @@ begin
|
|||||||
Result := Min(StartPos, EndPos);
|
Result := Min(StartPos, EndPos);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class function TGtk2WSCustomMemo.GetSelLength(const ACustomEdit: TCustomEdit
|
class function TGtk2WSCustomMemo.GetSelLength(const ACustomEdit: TCustomEdit): integer;
|
||||||
): integer;
|
|
||||||
var
|
var
|
||||||
TextView: PGtkTextView;
|
TextView: PGtkTextView;
|
||||||
TextBuffer: PGtkTextBuffer;
|
TextBuffer: PGtkTextBuffer;
|
||||||
@ -350,8 +349,7 @@ begin
|
|||||||
Result := Abs(gtk_text_iter_get_offset(@EndIter) - gtk_text_iter_get_offset(@StartIter));
|
Result := Abs(gtk_text_iter_get_offset(@EndIter) - gtk_text_iter_get_offset(@StartIter));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class function TGtk2WSCustomMemo.GetCaretPos(const ACustomEdit: TCustomEdit
|
class function TGtk2WSCustomMemo.GetCaretPos(const ACustomEdit: TCustomEdit): TPoint;
|
||||||
): TPoint;
|
|
||||||
var
|
var
|
||||||
TextView: PGtkTextView;
|
TextView: PGtkTextView;
|
||||||
TextBuffer: PGtkTextBuffer;
|
TextBuffer: PGtkTextBuffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user