From: Colin Clark Date: Sun, 17 Apr 2022 14:36:59 +0000 (+0100) Subject: Bug fix: Recent folder list max. size ignored X-Git-Tag: gtk2final~23 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=1eefe9b77417f8f30c96fc5e389535b4132950be Bug fix: Recent folder list max. size ignored The Preferences/Behavior/Recent Folders Size parameter was being over-ridden by a constant in history_list.c. This parameter now affects other sections in $HOME/.config/geeqie/history, but that should not be a problem. --- diff --git a/src/history_list.c b/src/history_list.c index 9077903e..eb624c4f 100644 --- a/src/history_list.c +++ b/src/history_list.c @@ -179,9 +179,6 @@ void image_chain_append_end(const gchar *path) *----------------------------------------------------------------------------- */ -#define HISTORY_DEFAULT_KEY_COUNT 16 - - typedef struct _HistoryData HistoryData; struct _HistoryData { @@ -414,7 +411,7 @@ void history_list_add_to_key(const gchar *key, const gchar *path, gint max) hd->list = g_list_prepend(hd->list, g_strdup(path)); - if (max == -1) max = HISTORY_DEFAULT_KEY_COUNT; + if (max == -1) max = options->open_recent_list_maxsize; if (max > 0) { gint len = 0;