From ce75a6034f808841a249352f362676ce2c6270cb Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 29 Sep 2012 01:54:11 +0200 Subject: Limit the number of URLs to keep and add GUI options for it --- src/common/cfgfiles.c | 2 +- src/fe-gtk/setup.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 158bc3f7..e696729e 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -744,7 +744,7 @@ load_config (void) prefs.input_tray_priv = prefs.input_tray_hilight = 1; prefs.autodccsend = 2; /* browse mode */ prefs.url_grabber = 1; - prefs.url_grabber_limit = 0; /* 0 means unlimited for backcompat */ + prefs.url_grabber_limit = 50; /* 0 means unlimited */ prefs.text_search_follow = 1; #ifdef WIN32 prefs.identd = 1; diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index e2ec7fd8..907218b7 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -489,6 +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_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_END, 0, 0, 0, 0, 0} }; -- cgit 1.4.1