From 1eefe9b77417f8f30c96fc5e389535b4132950be Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Sun, 17 Apr 2022 15:36:59 +0100 Subject: [PATCH] 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. --- src/history_list.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.20.1