summaryrefslogtreecommitdiff
path: root/UPreferences.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-07 20:40:48 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-07 20:40:48 +0200
commita0f1e0e9db4b0edee45018c47a08761916af0ce6 (patch)
treedc9d05f5772442f61ec913631540b24cf67d5e8a /UPreferences.pas
parentecde167da74c86bc047aaf84c5e548cf65a5da98 (diff)
downloadtuxcmd-0.6.38.tar.xz
Revised UTF-8 filenames supportv0.6.38
Diffstat (limited to 'UPreferences.pas')
-rw-r--r--UPreferences.pas14
1 files changed, 7 insertions, 7 deletions
diff --git a/UPreferences.pas b/UPreferences.pas
index ca4733f..c1c75b0 100644
--- a/UPreferences.pas
+++ b/UPreferences.pas
@@ -197,7 +197,7 @@ begin
SizeFormatOptionMenu := TGTKOptionMenu.Create(Self);
SizeFormatLabel.FocusControl := SizeFormatOptionMenu;
miSizeFormat1 := TGTKMenuItem.CreateTyped(Self, itLabel);
- miSizeFormat1.Caption := Format('%s %s', [LANGPreferencesmiSizeFormat1, ANSIToUTF8(FormatFloat('(###,###,###)', 123456))]);
+ miSizeFormat1.Caption := Format('%s %s', [LANGPreferencesmiSizeFormat1, FormatFloat('(###,###,###)', 123456)]);
miSizeFormat2 := TGTKMenuItem.CreateTyped(Self, itLabel);
miSizeFormat2.Caption := '123456';
miSizeFormat3 := TGTKMenuItem.CreateTyped(Self, itLabel);
@@ -704,9 +704,9 @@ begin
ClearROAttr.Checked := ConfClearReadOnlyAttr;
DisableMouseRename.Checked := ConfDisableMouseRename;
ShowFiletypeIcons.Checked := ConfUseFileTypeIcons;
- ViewerCombo.Entry.Text := ANSIToUTF8(ConfViewer);
- EditorCombo.Entry.Text := ANSIToUTF8(ConfEditor);
- TerminalCombo.Entry.Text := ANSIToUTF8(ConfTerminalCommand);
+ ViewerCombo.Entry.Text := StrToUTF8(ConfViewer);
+ EditorCombo.Entry.Text := StrToUTF8(ConfEditor);
+ TerminalCombo.Entry.Text := StrToUTF8(ConfTerminalCommand);
DefaultFontCheckBox.Checked := ConfUseSystemFont;
if not StringToGDKColor(ConfNormalItemFGColor, AColor) then StringToGDKColor(ConfDefaultNormalItemFGColor, AColor);
@@ -774,9 +774,9 @@ begin
ConfClearReadOnlyAttr := ClearROAttr.Checked;
ConfDisableMouseRename := DisableMouseRename.Checked;
ConfUseFileTypeIcons := ShowFiletypeIcons.Checked;
- ConfViewer := UTF8ToANSI(ViewerCombo.Entry.Text);
- ConfEditor := UTF8ToANSI(EditorCombo.Entry.Text);
- ConfTerminalCommand := UTF8ToANSI(TerminalCombo.Entry.Text);
+ ConfViewer := UTF8ToStr(ViewerCombo.Entry.Text);
+ ConfEditor := UTF8ToStr(EditorCombo.Entry.Text);
+ ConfTerminalCommand := UTF8ToStr(TerminalCombo.Entry.Text);
ConfUseSystemFont := DefaultFontCheckBox.Checked;
if not ConfUseSystemFont then ConfPanelFont := ListFontPreview.Caption;