From b9703b29819b619037cc282d719c187e51bacd30 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 23 Dec 2024 23:59:45 +0100 Subject: Port to g-i generated glib2 bindings Includes switch to FPC -Mobjfpc and related pointer style fixes. --- UConnectionProperties.pas | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'UConnectionProperties.pas') diff --git a/UConnectionProperties.pas b/UConnectionProperties.pas index 7b9ef1b..a7dd921 100644 --- a/UConnectionProperties.pas +++ b/UConnectionProperties.pas @@ -22,7 +22,7 @@ unit UConnectionProperties; interface uses - SysUtils, Types, Classes, Variants, GTKControls, GTKForms, GTKStdCtrls, GTKExtCtrls, GTKConsts, GTKMenus; + SysUtils, Classes, GTKControls, GTKForms, GTKStdCtrls, GTKExtCtrls, GTKConsts, GTKMenus; type TFConnectionProperties = class(TGTKDialog) @@ -207,15 +207,15 @@ begin Lock := True; - OnKeyDown := FormKeyDown; - NameEntry.OnChanged := NameEntryChanged; - URIEntry.OnChanged := URIEntryChanged; - ServiceTypeOptionMenu.OnChanged := ServiceTypeOptionMenuChanged; - ServerEntry.OnChanged := ServiceTypeOptionMenuChanged; - UserNameEntry.OnChanged := ServiceTypeOptionMenuChanged; - PasswordEntry.OnChanged := ServiceTypeOptionMenuChanged; - TargetDirEntry.OnChanged := ServiceTypeOptionMenuChanged; - MaskPasswordCheckButton.OnToggled := MaskPasswordCheckButtonToggled; + OnKeyDown := @FormKeyDown; + NameEntry.OnChanged := @NameEntryChanged; + URIEntry.OnChanged := @URIEntryChanged; + ServiceTypeOptionMenu.OnChanged := @ServiceTypeOptionMenuChanged; + ServerEntry.OnChanged := @ServiceTypeOptionMenuChanged; + UserNameEntry.OnChanged := @ServiceTypeOptionMenuChanged; + PasswordEntry.OnChanged := @ServiceTypeOptionMenuChanged; + TargetDirEntry.OnChanged := @ServiceTypeOptionMenuChanged; + MaskPasswordCheckButton.OnToggled := @MaskPasswordCheckButtonToggled; NameEntry.SetFocus; @@ -310,7 +310,7 @@ begin CurrentURI := MakeURI(False); URIEntry.OnChanged := nil; URIEntry.Text := MakeURI(MaskPasswordCheckButton.Checked); - URIEntry.OnChanged := URIEntryChanged; + URIEntry.OnChanged := @URIEntryChanged; NameEntryChanged(Sender); end; -- cgit v1.2.3