summaryrefslogtreecommitdiff
path: root/UGnome.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-15 11:42:49 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-15 11:42:49 +0200
commit25c58a81ca9202af54d28888d2b068ebeb2a376f (patch)
treeb0ad200b316f4dec392d1640bd6e3edea6be3606 /UGnome.pas
parentc9a02bf590248c0bd8e1343198d3f9c13ce118c1 (diff)
downloadtuxcmd-25c58a81ca9202af54d28888d2b068ebeb2a376f.tar.xz
Portability fixes
Diffstat (limited to 'UGnome.pas')
-rw-r--r--UGnome.pas14
1 files changed, 7 insertions, 7 deletions
diff --git a/UGnome.pas b/UGnome.pas
index a54adbf..8659410 100644
--- a/UGnome.pas
+++ b/UGnome.pas
@@ -58,13 +58,13 @@ type TGnomeColorButton = class(TGTKButton)
TGnomeDateEdit = class(TGTKHBox)
private
- function GetTime: TDateTime;
- procedure SetTime(Value: TDateTime);
+ function GetTime: time_t;
+ procedure SetTime(Value: time_t);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
- property Time: TDateTime read GetTime write SetTime;
+ property Time: time_t read GetTime write SetTime;
end;
TEphyNotebook = class;
@@ -336,14 +336,14 @@ begin
inherited Destroy;
end;
-function TGnomeDateEdit.GetTime: TDateTime;
+function TGnomeDateEdit.GetTime: time_t;
begin
- Result := UnixToDateTime(gnome_date_edit_get_time(FWidget));
+ Result := gnome_date_edit_get_time(FWidget);
end;
-procedure TGnomeDateEdit.SetTime(Value: TDateTime);
+procedure TGnomeDateEdit.SetTime(Value: time_t);
begin
- gnome_date_edit_set_time(FWidget, DateTimeToUnix(Value));
+ gnome_date_edit_set_time(FWidget, Value);
end;
(********************************************************************************************************************************)