Bug fix: Recent folder list max. size ignored
authorColin Clark <colin.clark@cclark.uk>
Sun, 17 Apr 2022 14:36:59 +0000 (15:36 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 17 Apr 2022 14:36:59 +0000 (15:36 +0100)
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

index 9077903..eb624c4 100644 (file)
@@ -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;