pinosaur
/
surf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding a common way to enable and disable features.
[surf.git]
/
surf.c
diff --git
a/surf.c
b/surf.c
index
da84e1c
..
53dda18
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-2,6
+2,7
@@
*
* To understand surf, start reading main().
*/
*
* To understand surf, start reading main().
*/
+
#include <signal.h>
#include <X11/X.h>
#include <X11/Xatom.h>
#include <signal.h>
#include <X11/X.h>
#include <X11/Xatom.h>
@@
-1289,6
+1290,9
@@
main(int argc, char *argv[]) {
case 'b':
enablescrollbars = 0;
break;
case 'b':
enablescrollbars = 0;
break;
+ case 'B':
+ enablescrollbars = 1;
+ break;
case 'c':
cookiefile = EARGF(usage());
break;
case 'c':
cookiefile = EARGF(usage());
break;
@@
-1298,24
+1302,42
@@
main(int argc, char *argv[]) {
case 'g':
allowgeolocation = 0;
break;
case 'g':
allowgeolocation = 0;
break;
+ case 'G':
+ allowgeolocation = 1;
+ break;
case 'i':
loadimages = 0;
break;
case 'i':
loadimages = 0;
break;
+ case 'I':
+ loadimages = 1;
+ break;
case 'k':
case 'k':
+ kioskmode = 0;
+ break;
+ case 'K':
kioskmode = 1;
break;
case 'n':
enableinspector = 0;
break;
kioskmode = 1;
break;
case 'n':
enableinspector = 0;
break;
+ case 'N':
+ enableinspector = 1;
+ break;
case 'p':
enableplugins = 0;
break;
case 'p':
enableplugins = 0;
break;
+ case 'P':
+ enableplugins = 1;
+ break;
case 'r':
scriptfile = EARGF(usage());
break;
case 's':
enablescripts = 0;
break;
case 'r':
scriptfile = EARGF(usage());
break;
case 's':
enablescripts = 0;
break;
+ case 'S':
+ enablescripts = 1;
+ break;
case 't':
stylefile = EARGF(usage());
break;
case 't':
stylefile = EARGF(usage());
break;