Mercurial > gftp.yaz
comparison src/gtk/gtkui.c @ 514:e55d8b35d809
2004-7-25 Brian Masney <masneyb@gftp.org>
* src/gtk/bookmarks.c src/gtk/gftp-gtk.c src/gtk/gtkui.c
src/gtk/transfer.c src/text/textui.c src/uicommon/gftpui.c
src/uicommon/gftpui.h - added clear_cache argument to gftpui_refresh()
Don't clear the cache when changing directories
* src/uicommon/gftpuicallbacks.c (_gftpui_common_rm_list) - return
0 on success
* src/gtk/delete_dialog.c - refresh the directory listing after the
operation was successful
author | masneyb |
---|---|
date | Sun, 25 Jul 2004 15:48:25 +0000 |
parents | 937f2b75bbee |
children | 648bf2825ea9 |
comparison
equal
deleted
inserted
replaced
513:cb882efd4d6d | 514:e55d8b35d809 |
---|---|
41 gtk_entry_set_text (GTK_ENTRY (gftpui_command_widget), ""); | 41 gtk_entry_set_text (GTK_ENTRY (gftpui_command_widget), ""); |
42 } | 42 } |
43 | 43 |
44 | 44 |
45 void | 45 void |
46 gftpui_refresh (void *uidata) | 46 gftpui_refresh (void *uidata, int clear_cache) |
47 { | 47 { |
48 gftp_window_data * wdata; | 48 gftp_window_data * wdata; |
49 | 49 |
50 wdata = uidata; | 50 wdata = uidata; |
51 if (!check_status (_("Refresh"), wdata, 0, 0, 0, 1)) | 51 if (!check_status (_("Refresh"), wdata, 0, 0, 0, 1)) |
54 if (check_reconnect (wdata) < 0) | 54 if (check_reconnect (wdata) < 0) |
55 return; | 55 return; |
56 | 56 |
57 gtk_clist_freeze (GTK_CLIST (wdata->listbox)); | 57 gtk_clist_freeze (GTK_CLIST (wdata->listbox)); |
58 remove_files_window (wdata); | 58 remove_files_window (wdata); |
59 gftp_delete_cache_entry (wdata->request, NULL, 0); | 59 |
60 if (clear_cache) | |
61 gftp_delete_cache_entry (wdata->request, NULL, 0); | |
62 | |
60 ftp_list_files (wdata); | 63 ftp_list_files (wdata); |
61 gtk_clist_thaw (GTK_CLIST (wdata->listbox)); | 64 gtk_clist_thaw (GTK_CLIST (wdata->listbox)); |
62 } | 65 } |
63 | 66 |
64 | 67 |
390 cdata = g_malloc0 (sizeof (*cdata)); | 393 cdata = g_malloc0 (sizeof (*cdata)); |
391 cdata->request = wdata->request; | 394 cdata->request = wdata->request; |
392 cdata->uidata = wdata; | 395 cdata->uidata = wdata; |
393 cdata->run_function = gftpui_common_run_chdir; | 396 cdata->run_function = gftpui_common_run_chdir; |
394 cdata->input_string = tempstr; | 397 cdata->input_string = tempstr; |
398 cdata->dont_clear_cache = 1; | |
395 | 399 |
396 ret = gftpui_common_run_callback_function (cdata); | 400 ret = gftpui_common_run_callback_function (cdata); |
397 | 401 |
398 g_free(tempstr); | 402 g_free(tempstr); |
399 g_free (cdata); | 403 g_free (cdata); |