[hackers] [surf] Moving some preprocessor config options to the standard suckless style. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Fri, 16 Nov 2012 16:14:12 +0100 (CET)

changeset: 268:4f73a45ac631
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Nov 16 10:53:30 2012 +0100
files: config.def.h surf.c
description:
Moving some preprocessor config options to the standard suckless style.


diff -r 3e0f59a4ba02 -r 4f73a45ac631 config.def.h
--- a/config.def.h Fri Nov 16 10:42:30 2012 +0100
+++ b/config.def.h Fri Nov 16 10:53:30 2012 +0100
_AT_@ -13,9 +13,8 @@
 static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
 static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
 static int indicator_thickness = 2;
-
-#define HIDE_BACKGROUND FALSE
-#define SPATIAL_BROWSING TRUE
+static Bool spatialbrowsing = TRUE;
+static Bool hidebackground = FALSE;
 
 #define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
         "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
diff -r 3e0f59a4ba02 -r 4f73a45ac631 surf.c
--- a/surf.c Fri Nov 16 10:42:30 2012 +0100
+++ b/surf.c Fri Nov 16 10:53:30 2012 +0100
_AT_@ -615,13 +615,13 @@
         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", SPATIAL_BROWSING, NULL);
+ g_object_set(G_OBJECT(settings), "enable-spatial-navigation", spatialbrowsing, NULL);
 
         g_free(uri);
 
         setatom(c, AtomFind, "");
         setatom(c, AtomUri, "about:blank");
- if(HIDE_BACKGROUND)
+ if(hidebackground)
                 webkit_web_view_set_transparent(c->view, TRUE);
 
         c->title = NULL;
Received on Fri Nov 16 2012 - 16:14:12 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 16 2012 - 16:24:06 CET