summaryrefslogtreecommitdiff
path: root/UChown.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-14 18:34:02 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-14 18:34:02 +0200
commitc9a02bf590248c0bd8e1343198d3f9c13ce118c1 (patch)
treecbd1b07cea6f3ccea7fc98c58d65f568e69e8527 /UChown.pas
parentb1dfa430702770c83c815bec24f1dc72175e1e5e (diff)
downloadtuxcmd-c9a02bf590248c0bd8e1343198d3f9c13ce118c1.tar.xz
Port to new ULibc unit, drop dependency to compiler Libc libraryv0.6.43
(preparation for PPC port)
Diffstat (limited to 'UChown.pas')
-rw-r--r--UChown.pas12
1 files changed, 6 insertions, 6 deletions
diff --git a/UChown.pas b/UChown.pas
index 5127c22..770c3fe 100644
--- a/UChown.pas
+++ b/UChown.pas
@@ -22,7 +22,7 @@ unit UChown;
interface
uses
- SysUtils, Types, Classes, Variants, GTKControls, GTKForms, GTKStdCtrls, GTKExtCtrls, GTKConsts, GTKMenus, GTKView;
+ SysUtils, Classes, GTKControls, GTKForms, GTKStdCtrls, GTKExtCtrls, GTKConsts, GTKView;
type
TFChown = class(TGTKDialog)
@@ -49,7 +49,7 @@ var
implementation
-uses Libc, ULocale, UCoreUtils, UCoreClasses;
+uses ULibc, ULocale, UCoreUtils, UCoreClasses;
procedure TFChown.FormCreate(Sender: TObject);
@@ -170,14 +170,14 @@ begin
if UsrManager.UserList.Count > 0 then
for i := 0 to UsrManager.UserList.Count - 1 do begin
Item := OwnerListView.Items.Add;
- Item.SetValue(0, TUser(UsrManager.UserList[i]).UserName);
- Item.SetValue(1, TUser(UsrManager.UserList[i]).UID);
+ Item.SetValue(0, TSystemUser(UsrManager.UserList[i]).UserName);
+ Item.SetValue(1, TSystemUser(UsrManager.UserList[i]).UID);
end;
if UsrManager.GroupList.Count > 0 then
for i := 0 to UsrManager.GroupList.Count - 1 do begin
Item := GroupListView.Items.Add;
- Item.SetValue(0, TGroup(UsrManager.GroupList[i]).GroupName);
- Item.SetValue(1, TGroup(UsrManager.GroupList[i]).GID);
+ Item.SetValue(0, TSystemGroup(UsrManager.GroupList[i]).GroupName);
+ Item.SetValue(1, TSystemGroup(UsrManager.GroupList[i]).GID);
end;
finally
UsrManager.Free;