From 6132c2ef3066e813acb1237afeca266f32c53a21 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 28 Nov 2009 16:00:34 +0100 Subject: Engine and VFS API cleanup * also split threaded operations into UCoreWorkers.pas * symlinks should be properly resolved now, even in archives * no more relative/absolute path confusion * moved FillDirFiles outside engines, made it more universal --- UGnome.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'UGnome.pas') diff --git a/UGnome.pas b/UGnome.pas index 54386cf..c0f93b1 100644 --- a/UGnome.pas +++ b/UGnome.pas @@ -161,9 +161,9 @@ function HandleVFSAskPasswordCallback(DialogParent: PGtkWidget; flags: TVFSAskPasswordFlags; username: PPChar; password: PPChar; - anonymous: PInteger; + anonymous: Pgboolean; domain: PPChar; - password_save: PVFSPasswordSave): LongBool; + password_save: PVFSPasswordSave): gboolean; @@ -1351,9 +1351,9 @@ function HandleVFSAskPasswordCallback(DialogParent: PGtkWidget; flags: TVFSAskPasswordFlags; username: PPChar; password: PPChar; - anonymous: PInteger; + anonymous: Pgboolean; domain: PPChar; - password_save: PVFSPasswordSave): LongBool; + password_save: PVFSPasswordSave): gboolean; function table_add_entry(table: PGtkWidget; row: integer; const label_text: PChar; const value: PChar; user_data: PVFSAskPasswordCallbackPriv): PGtkEntry; var entry: PGtkEntry; @@ -1537,7 +1537,7 @@ begin if (priv.username_entry <> nil) and (username <> nil) then username^ := g_strdup(gtk_entry_get_text(priv.username_entry)); if (priv.domain_entry <> nil) and (domain <> nil) then domain^ := g_strdup(gtk_entry_get_text(priv.domain_entry)); if (priv.password_entry <> nil) and (password <> nil) then password^ := g_strdup(gtk_entry_get_text(priv.password_entry)); - if (priv.choice_anon <> nil) and (anonymous <> nil) then anonymous^ := Ord(gtk_toggle_button_get_active(PGtkToggleButton(priv.choice_anon))); + if (priv.choice_anon <> nil) and (anonymous <> nil) then anonymous^ := gtk_toggle_button_get_active(PGtkToggleButton(priv.choice_anon)); if (password_save <> nil) and (radio_forget <> nil) and (radio_remember <> nil) then begin if gtk_toggle_button_get_active(PGtkToggleButton(radio_forget)) then password_save^ := VFS_PASSWORD_SAVE_NEVER else if (radio_session <> nil) and gtk_toggle_button_get_active(PGtkToggleButton(radio_session)) then password_save^ := VFS_PASSWORD_SAVE_FOR_SESSION else -- cgit v1.2.3