remove unused font configuration, update license year - sent - simple plaintext… | |
git clone git://git.suckless.org/sent | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 345b48fe0333bbc85c52c5b4ab1ab94879b2fc1d | |
parent a9ca2473fd72462eaf90346258119c13c74bddcb | |
Author: Markus Teich <[email protected]> | |
Date: Sat, 31 Oct 2015 18:10:47 +0100 | |
remove unused font configuration, update license year | |
Diffstat: | |
M config.def.h | 2 -- | |
M sent.c | 13 +++++-------- | |
2 files changed, 5 insertions(+), 10 deletions(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
@@ -1,7 +1,5 @@ | |
/* See LICENSE file for copyright and license details. */ | |
-/* The three fields set to 0 have to stay that way for a scalable font */ | |
-static char *font = "-*-dejavu sans condensed-bold-r-*-*-0-0-*-*-*-0-*-*"; | |
static char *fontfallbacks[] = { | |
"dejavu", | |
"trollolo", | |
diff --git a/sent.c b/sent.c | |
@@ -97,7 +97,7 @@ static void usage(); | |
static void xdraw(); | |
static void xhints(); | |
static void xinit(); | |
-static void xloadfonts(char *); | |
+static void xloadfonts(); | |
static void bpress(XEvent *); | |
static void cmessage(XEvent *); | |
@@ -454,8 +454,8 @@ void run() | |
void usage() | |
{ | |
- die("sent " VERSION " (c) 2014 [email protected]\n" \ | |
- "usage: sent [-f font] FILE1 [FILE2 ...]", argv0); | |
+ die("sent " VERSION " (c) 2015 [email protected]\n" \ | |
+ "usage: sent FILE1 [FILE2 ...]", argv0); | |
} | |
void xdraw() | |
@@ -525,7 +525,7 @@ void xinit() | |
sc = drw_scm_create(d, "#000000", "#FFFFFF"); | |
drw_setscheme(d, sc); | |
- xloadfonts(font); | |
+ xloadfonts(); | |
XStringListToTextProperty(&argv0, 1, &prop); | |
XSetWMName(xw.dpy, xw.win, &prop); | |
@@ -536,7 +536,7 @@ void xinit() | |
XSync(xw.dpy, False); | |
} | |
-void xloadfonts(char *fontstr) | |
+void xloadfonts() | |
{ | |
int i, j; | |
char *fstrs[LEN(fontfallbacks)]; | |
@@ -601,9 +601,6 @@ int main(int argc, char *argv[]) | |
FILE *fp = NULL; | |
ARGBEGIN { | |
- case 'f': | |
- font = EARGF(usage()); | |
- break; | |
case 'v': | |
default: | |
usage(); |