]> Skullheadx's Git Forge - surf.git/commitdiff
Add a variable in config.def.h for configuring spatial browsing.
authorTroels Henriksen <athas@sigkill.dk>
Tue, 17 Jan 2012 12:58:04 +0000 (13:58 +0100)
committerTroels Henriksen <athas@sigkill.dk>
Tue, 17 Jan 2012 12:58:04 +0000 (13:58 +0100)
config.def.h
surf.c

index a52fe1c0d54b2fe9d3f1501df3a2c807f6f1dcd4..9917b766fe985813bcfa006adb76297b97e9bac8 100644 (file)
@@ -10,6 +10,7 @@ static time_t sessiontime   = 3600;
 static char *cafile         = "/etc/ssl/certs/ca-certificates.crt";
 static char *strictssl      = FALSE; /* Refuse untrusted SSL connections */
 #define HIDE_BACKGROUND FALSE
+#define SPATIAL_BROWSING TRUE
 
 #define SETPROP(p, q)     { .v = (char *[]){ "/bin/sh", "-c", \
        "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
diff --git a/surf.c b/surf.c
index 6022ca24d443e84489607a2d2f8792db7eba4ce5..a3508bfce60ca3ac8510aa2e8b30139b9c7e5f8f 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -529,7 +529,7 @@ newclient(void) {
        g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL);
        g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL);
        g_object_set(G_OBJECT(settings), "enable-scripts", script, NULL);
-       g_object_set(G_OBJECT(settings), "enable-spatial-navigation", true, NULL);
+       g_object_set(G_OBJECT(settings), "enable-spatial-navigation", SPATIAL_BROWSING, NULL);
 
        g_free(uri);