Disable support for external commands by default
This commit is contained in:
parent
9fcf2c8f34
commit
b2f1b997ed
8
config.h
8
config.h
|
@ -1,5 +1,4 @@
|
||||||
/* default window dimensions: *
|
/* default window dimensions (overwritten via -g option): */
|
||||||
* (also controllable via -g option) */
|
|
||||||
#define WIN_WIDTH 800
|
#define WIN_WIDTH 800
|
||||||
#define WIN_HEIGHT 600
|
#define WIN_HEIGHT 600
|
||||||
|
|
||||||
|
@ -25,6 +24,5 @@ static const float zoom_levels[] = {
|
||||||
/* default dimension of thumbnails (width == height): */
|
/* default dimension of thumbnails (width == height): */
|
||||||
#define THUMB_SIZE 60
|
#define THUMB_SIZE 60
|
||||||
|
|
||||||
/* remove this line to disable external commands: *
|
/* support for external commands (defined in commands.h): */
|
||||||
* (otherwise have a look at commands.h to define them) */
|
#define EXT_COMMANDS 0
|
||||||
#define EXT_COMMANDS
|
|
||||||
|
|
6
main.c
6
main.c
|
@ -37,7 +37,7 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
#ifdef EXT_COMMANDS
|
#if EXT_COMMANDS
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ void read_dir_rec(const char *dirname) {
|
||||||
free(dirnames);
|
free(dirnames);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXT_COMMANDS
|
#if EXT_COMMANDS
|
||||||
int run_command(const char *cline, Bool reload) {
|
int run_command(const char *cline, Bool reload) {
|
||||||
int fncnt, fnlen;
|
int fncnt, fnlen;
|
||||||
char *cn, *cmdline;
|
char *cn, *cmdline;
|
||||||
|
@ -382,7 +382,7 @@ void on_keypress(XKeyEvent *kev) {
|
||||||
XLookupString(kev, &key, 1, &ksym, NULL);
|
XLookupString(kev, &key, 1, &ksym, NULL);
|
||||||
changed = 0;
|
changed = 0;
|
||||||
|
|
||||||
#ifdef EXT_COMMANDS
|
#if EXT_COMMANDS
|
||||||
/* external commands from commands.h */
|
/* external commands from commands.h */
|
||||||
if (CLEANMASK(kev->state) & ControlMask) {
|
if (CLEANMASK(kev->state) & ControlMask) {
|
||||||
for (i = 0; i < LEN(commands); ++i) {
|
for (i = 0; i < LEN(commands); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue