Mercurial > gftp.yaz
diff src/gtk/delete_dialog.c @ 511:c3ff4479a92d
2004-7-25 Brian Masney <masneyb@gftp.org>
* src/gtk/transfer.c - when spawning a thread to get the
subdirectories, don't refresh the local directory listing. Also added
custom connect/disconnect functions so that timeouts can be handled
properly.
* src/gtk/delete_dialog.c - make sure that 2 connections to the server
don't get established
* src/uicommon/gftpui.c src/uicommon/gftpui.h - added dont_refresh
variable to gftpui_callback_data structure. If this is true, then it
will not run gftpui_refresh() after the thread terminates
author | masneyb |
---|---|
date | Sun, 25 Jul 2004 14:15:00 +0000 |
parents | 34a4c6ec453c |
children | e55d8b35d809 |
line wrap: on
line diff
--- a/src/gtk/delete_dialog.c Sat Jul 24 12:43:03 2004 +0000 +++ b/src/gtk/delete_dialog.c Sun Jul 25 14:15:00 2004 +0000 @@ -36,18 +36,12 @@ cdata->files = transfer->files; cdata->uidata = wdata; cdata->run_function = gftpui_common_run_delete; + cdata->dont_refresh = 1; gftpui_common_run_callback_function (cdata); g_free (cdata); - free_tdata (transfer); - - if (!GFTP_IS_CONNECTED (wdata->request)) - gftpui_disconnect (wdata); - else - gftpui_refresh (wdata); - - gtk_clist_thaw (GTK_CLIST (wdata->listbox)); + /* FIXME free_tdata (transfer); */ } @@ -87,7 +81,8 @@ int num, ret; wdata = data; - if (!check_status (_("Delete"), wdata, gftpui_common_use_threads (wdata->request), 0, 1, 1)) + if (!check_status (_("Delete"), wdata, + gftpui_common_use_threads (wdata->request), 0, 1, 1)) return; transfer = g_malloc0 (sizeof (*transfer));