aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-26 12:15:28 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-26 12:15:28 +0200
commit9474bb8edd588e458dff418e5aaec44cc735f851 (patch)
treedd317496634bbfd2f46cb2df924bc56cf9b78fe1 /uzbl.c
parent76449af7e00548911fd75aa61fff5224a42dd346 (diff)
parent44d342ab5c118633b8b7d380254f540634bdede5 (diff)
merge in some fixes from barrucadu
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/uzbl.c b/uzbl.c
index b4c4790..ca8b40f 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -49,11 +49,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;
@@ -298,7 +298,7 @@ key_press_cb (WebKitWebView* page, GdkEventKey* event)
}
}
- return(result);
+ return result;
}
static GtkWidget*
@@ -369,7 +369,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");
}
@@ -377,21 +377,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");
}