From 5ebed0cd5dc2eb2f71e18b24148903f3c10ebf69 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 21 Mar 2010 00:19:02 +0100 Subject: Implemented a very basic configuration dialog. This code is a bit hackish, all configuration options should be collected in a single place (eg. a config struct) in order to easily keep track of all configuration options. --- preload.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'preload.c') diff --git a/preload.c b/preload.c index 3bd2e24..62664cf 100644 --- a/preload.c +++ b/preload.c @@ -4,8 +4,9 @@ #include "preload.h" #include "wallpapers.h" +#include "walls_conf.h" -guint preload_max = 6; +guint preload_max = 2; static gboolean preload_thread_exit = FALSE; static GHashTable *hashtable = NULL; @@ -33,6 +34,7 @@ static void preload_hash_table_free(gpointer data) { } void preload_init() { + preload_max = conf_get_int("walls", "max_preload", 2); preload_hashtable_mutex = g_mutex_new(); preload_thread_mutex = g_mutex_new(); -- cgit v1.2.3