# HG changeset patch # User masneyb # Date 1071347799 0 # Node ID 5f9d5aee0c1c70d466215ea0b6997ea4a902bfa6 # Parent e0c22c0d91063aa63e19e9aee1341f049dfc9b52 2003-12-10 Brian Masney * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c - check for a timeout from the remote server when refreshing the directory listing and changing directores. If it did, reconnect to the server. diff -r e0c22c0d9106 -r 5f9d5aee0c1c ChangeLog --- a/ChangeLog Sat Dec 13 19:26:27 2003 +0000 +++ b/ChangeLog Sat Dec 13 20:36:39 2003 +0000 @@ -1,4 +1,8 @@ 2003-12-10 Brian Masney + * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c - check + for a timeout from the remote server when refreshing the directory + listing and changing directores. If it did, reconnect to the server. + * lib/rfc2068.c - set the default file attributes to -rw-r--r-- for all files. @@ -1830,7 +1834,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.183 2003/12/13 19:26:21 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.184 2003/12/13 20:36:37 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r e0c22c0d9106 -r 5f9d5aee0c1c src/gtk/gftp-gtk.c --- a/src/gtk/gftp-gtk.c Sat Dec 13 19:26:27 2003 +0000 +++ b/src/gtk/gftp-gtk.c Sat Dec 13 20:36:39 2003 +0000 @@ -141,6 +141,8 @@ doexit (widget, data); } +/* This function is only here because the callback function cannot have a + return value and chdir_dialog() does */ static void chfunc (gpointer data) @@ -507,6 +509,9 @@ dir = tempfle->isdir; success = 0; + if (check_reconnect (wdata) < 0) + return; + if (tempfle->islink || tempfle->isdir) success = chdir_dialog (wdata); diff -r e0c22c0d9106 -r 5f9d5aee0c1c src/gtk/menu-items.c --- a/src/gtk/menu-items.c Sat Dec 13 19:26:27 2003 +0000 +++ b/src/gtk/menu-items.c Sat Dec 13 20:36:39 2003 +0000 @@ -479,6 +479,10 @@ wdata = data; edttxt = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (wdata->combo)->entry)); + + if (check_reconnect (wdata) < 0) + return (0); + if (!GFTP_IS_CONNECTED (wdata->request) && *edttxt != '\0') { toolbar_hostedit (NULL, NULL); diff -r e0c22c0d9106 -r 5f9d5aee0c1c src/gtk/misc-gtk.c --- a/src/gtk/misc-gtk.c Sat Dec 13 19:26:27 2003 +0000 +++ b/src/gtk/misc-gtk.c Sat Dec 13 20:36:39 2003 +0000 @@ -210,6 +210,10 @@ { if (!check_status (_("Refresh"), wdata, 0, 0, 0, 1)) return; + + if (check_reconnect (wdata) < 0) + return; + gtk_clist_freeze (GTK_CLIST (wdata->listbox)); remove_files_window (wdata); gftp_delete_cache_entry (wdata->request, NULL, 0);