summaryrefslogtreecommitdiff
path: root/preload.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-03-21 00:19:02 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-03-21 00:19:02 +0100
commit5ebed0cd5dc2eb2f71e18b24148903f3c10ebf69 (patch)
tree8da511b975aea9f8e8eb081993a761031a1996e2 /preload.c
parentb6b63a3c51eab072483ac0c7ad07f107bb790788 (diff)
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.
Diffstat (limited to 'preload.c')
-rw-r--r--preload.c4
1 files changed, 3 insertions, 1 deletions
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();