diff options
| author | Tomas Bzatek <tbzatek@vmrawhide.w2k3dom> | 2008-08-20 14:11:05 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@vmrawhide.w2k3dom> | 2008-08-20 14:11:05 +0200 |
| commit | 9e95d1204b9a05638e912d98ea3d1abf5faa35fd (patch) | |
| tree | e6b3273df5d1ce390e26c795e1bfe7316ac71604 /libgtk_kylix | |
| parent | 4c0435478c2325b107740c812ca54476bebeccee (diff) | |
| download | tuxcmd-9e95d1204b9a05638e912d98ea3d1abf5faa35fd.tar.xz | |
FPC 2.2.2 compatibility
Diffstat (limited to 'libgtk_kylix')
| -rw-r--r-- | libgtk_kylix/GTKStdCtrls.pas | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libgtk_kylix/GTKStdCtrls.pas b/libgtk_kylix/GTKStdCtrls.pas index 1d4157a..f2a2ec2 100644 --- a/libgtk_kylix/GTKStdCtrls.pas +++ b/libgtk_kylix/GTKStdCtrls.pas @@ -421,11 +421,10 @@ begin end; function TGTKMisc.GetXPadding: integer; -var xpad, ypad: pgint; +var xpad, ypad: gint; begin - gtk_misc_get_padding(PGtkMisc(FWidget), xpad, ypad); - if Assigned(xpad) then Result := Integer(xpad) - else Result := 0; + gtk_misc_get_padding(PGtkMisc(FWidget), @xpad, @ypad); + Result := xpad; end; procedure TGTKMisc.SetXPadding(Value: integer); @@ -434,11 +433,10 @@ begin end; function TGTKMisc.GetYPadding: integer; -var xpad, ypad: pgint; +var xpad, ypad: gint; begin - gtk_misc_get_padding(PGtkMisc(FWidget), xpad, ypad); - if Assigned(ypad) then Result := Integer(ypad) - else Result := 0; + gtk_misc_get_padding(PGtkMisc(FWidget), @xpad, @ypad); + Result := ypad; end; procedure TGTKMisc.SetYPadding(Value: integer); |
