commit - 5bc288b2b1270957baab2142e1e8b20b796fed11
commit + 8623bf5d196cb0bed4bdca025f23664b2bdcdd8b
blob - 7cd31dbaf7c165e4a92f542b7089dbc415b25531
blob + f44738ed89581b1bd652fb48b00a72752c159b52
--- LICENSE
+++ LICENSE
MIT/X Consortium License
© 2010 Connor Lane Smith <cls@lubutu.com>
-© 2006-2009 Anselm R. Garbe <anselm@garbe.us>
+© 2006-2010 Anselm R Garbe <anselm@garbe.us>
© 2009 Gottox <gottox@s01.de>
© 2009 Markus Schnalke <meillo@marmaro.de>
© 2009 Evan Gates <evan.gates@gmail.com>
blob - e7df2d78f93b70f844dcdae69bba7d8dcf5be0e6
blob + 5ea6729f7f8bab2eb4547617a519f34645c339bc
--- Makefile
+++ Makefile
${OBJ}: config.h config.mk
+config.h:
+ @echo creating $@ from config.def.h
+ @cp config.def.h $@
+
dmenu: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
dist: clean
@echo creating dist tarball
@mkdir -p dmenu-${VERSION}
- @cp -R LICENSE Makefile README config.mk dmenu.1 config.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION}
+ @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION}
@tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
@gzip dmenu-${VERSION}.tar
@rm -rf dmenu-${VERSION}
blob - 3e6c6167fcce50684955536a1cce76e76d771e2a (mode 644)
blob + /dev/null
--- config.h
+++ /dev/null
-/* See LICENSE file for copyright and license details. */
-
-/* appearance */
-static const char *font = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
-static const char *normbgcolor = "#cccccc";
-static const char *normfgcolor = "#000000";
-static const char *selbgcolor = "#0066ff";
-static const char *selfgcolor = "#ffffff";
-static unsigned int spaceitem = 30; /* px between menu items */
blob - /dev/null
blob + 3e6c6167fcce50684955536a1cce76e76d771e2a (mode 644)
--- /dev/null
+++ config.def.h
+/* See LICENSE file for copyright and license details. */
+
+/* appearance */
+static const char *font = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
+static const char *normbgcolor = "#cccccc";
+static const char *normfgcolor = "#000000";
+static const char *selbgcolor = "#0066ff";
+static const char *selfgcolor = "#ffffff";
+static unsigned int spaceitem = 30; /* px between menu items */
blob - bebc2065031cfac2e2778af52ba7fbb9734f3680
blob + 3fd9275b3f932f81f7a9c194eef4d7197adad4f9
--- dmenu.c
+++ dmenu.c
typedef struct Item Item;
struct Item {
char *text;
- Item *next; /* traverses all items */
- Item *left, *right; /* traverses items matching current search pattern */
+ Item *next; /* traverses all items */
+ Item *left, *right; /* traverses items matching current search pattern */
};
/* forward declarations */
static Bool running = True;
static Display *dpy;
static DC dc;
-static Item *allitems = NULL; /* first of all items */
-static Item *item = NULL; /* first of pattern matching items */
+static Item *allitems = NULL; /* first of all items */
+static Item *item = NULL; /* first of pattern matching items */
static Item *sel = NULL;
static Item *next = NULL;
static Item *prev = NULL;