From ca3fa043f09b0684999f8881e65c22dfde875004 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 13 Oct 2012 10:03:39 +0200 Subject: Save URLs to disk on-the-fly and provide an option for toggling it --- src/fe-gtk/setup.c | 5 +++-- src/fe-gtk/urlgrab.c | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 907218b7..d773cbdf 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -489,9 +489,10 @@ static const setting logging_settings[] = {ST_LABEL, N_("See the strftime manpage for details.")}, #endif - {ST_HEADER, N_("URL Grabber"),0,0,0}, + {ST_HEADER, N_("URLs"),0,0,0}, + {ST_TOGGLE, N_("Enable logging of URLs to disk"), P_OFFINTNL(url_logging), 0, 0, 0}, {ST_TOGGLE, N_("Enable URL grabber"), P_OFFINTNL(url_grabber), 0, 0, 2}, - {ST_NUMBER, N_("Maximum number of URLs:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999}, + {ST_NUMBER, N_("Maximum number of URLs to grab:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999}, {ST_END, 0, 0, 0, 0, 0} }; diff --git a/src/fe-gtk/urlgrab.c b/src/fe-gtk/urlgrab.c index d9b79670..1cd46d9e 100644 --- a/src/fe-gtk/urlgrab.c +++ b/src/fe-gtk/urlgrab.c @@ -138,7 +138,9 @@ static void url_save_callback (void *arg1, char *file) { if (file) - url_save (file, "w", TRUE); + { + url_save_tree (file, "w", TRUE); + } } static void -- cgit 1.4.1