Mercurial > gftp.yaz
comparison src/gtk/bookmarks.c @ 275:5810b0f97eee
2003-9-21 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (gftp_parse_bookmark) lib/gftp.h lib/bookmark.c
src/gtk/bookmarks.c - added pointer to refresh_local variable that is
enabled if the local directory was changed. In src/gtk/bookmarks.c, if
the local directory was changed, refresh the directory listing.
author | masneyb |
---|---|
date | Sun, 21 Sep 2003 17:33:45 +0000 |
parents | 2ad324cf4930 |
children | 470759f49ba2 |
comparison
equal
deleted
inserted
replaced
274:4610d25d4abb | 275:5810b0f97eee |
---|---|
29 | 29 |
30 | 30 |
31 void | 31 void |
32 run_bookmark (gpointer data) | 32 run_bookmark (gpointer data) |
33 { | 33 { |
34 int refresh_local; | |
35 | |
34 if (window1.request->stopable || window2.request->stopable) | 36 if (window1.request->stopable || window2.request->stopable) |
35 { | 37 { |
36 ftp_log (gftp_logging_misc, NULL, | 38 ftp_log (gftp_logging_misc, NULL, |
37 _("%s: Please hit the stop button first to do anything else\n"), | 39 _("%s: Please hit the stop button first to do anything else\n"), |
38 _("Run Bookmark")); | 40 _("Run Bookmark")); |
39 return; | 41 return; |
40 } | 42 } |
41 | 43 |
42 if (gftp_parse_bookmark (current_wdata->request, other_wdata->request, | 44 if (gftp_parse_bookmark (current_wdata->request, other_wdata->request, |
43 (char *) data) < 0) | 45 (char *) data, &refresh_local) < 0) |
44 return; | 46 return; |
47 | |
48 if (refresh_local) | |
49 refresh (other_wdata); | |
45 | 50 |
46 if (GFTP_IS_CONNECTED (current_wdata->request)) | 51 if (GFTP_IS_CONNECTED (current_wdata->request)) |
47 disconnect (current_wdata); | 52 disconnect (current_wdata); |
48 | 53 |
49 ftp_connect (current_wdata, current_wdata->request, 1); | 54 ftp_connect (current_wdata, current_wdata->request, 1); |