From 46248863352abe2db5c4b1de8b6447cb3ec6e36d Mon Sep 17 00:00:00 2001 From: Barrucadu Date: Sun, 26 Apr 2009 11:01:52 +0100 Subject: Fixed a bug in settings loading. --- uzbl.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index 312e193..b89a7ce 100644 --- a/uzbl.c +++ b/uzbl.c @@ -50,11 +50,11 @@ static gchar* main_title; static gchar selected_url[500]; /* Behaviour variables */ -static gchar* history_file = NULL; -static gchar* fifodir = NULL; -static gchar* download_handler = NULL; -static gchar* always_insert_mode = NULL; -static gchar* modkey = NULL; +static gchar* history_file = NULL; +static gchar* fifodir = NULL; +static gchar* download_handler = NULL; +static gboolean always_insert_mode = 0; +static gchar* modkey = NULL; static char fifopath[64]; static gint load_progress; @@ -308,7 +308,7 @@ key_press_cb (WebKitWebView* page, GdkEventKey* event) } } - return(result); + return result; } static GtkWidget* @@ -384,7 +384,7 @@ settings_init () { download_handler = g_key_file_get_value (config, "behavior", "download_handler", NULL); if (download_handler) { - printf ("Download manager: %s\n", history_file); + printf ("Download manager: %s\n", download_handler); } else { printf ("Download manager disabled\n"); } @@ -392,21 +392,21 @@ settings_init () { if (! fifodir) fifodir = g_key_file_get_value (config, "behavior", "fifodir", NULL); if (fifodir) { - printf ("Fifo directory: %s\n", history_file); + printf ("Fifo directory: %s\n", fifodir); } else { printf ("Fifo directory: /tmp\n"); } always_insert_mode = g_key_file_get_value (config, "behavior", "always_insert_mode", NULL); if (always_insert_mode) { - printf ("Always insert mode: %s\n", history_file); + printf ("Always insert mode: %s\n", always_insert_mode); } else { printf ("Always insert mode disabled/\n"); } modkey = g_key_file_get_value (config, "behavior", "modkey", NULL); if (modkey) { - printf ("Mod key: %s\n", history_file); + printf ("Mod key: %s\n", modkey); } else { printf ("Mod key disabled/\n"); } -- cgit v1.2.3