remove unused font configuration, update license year

This commit is contained in:
Markus Teich 2015-10-31 18:10:47 +01:00
parent a9ca2473fd
commit 345b48fe03
2 changed files with 5 additions and 10 deletions

View File

@ -1,7 +1,5 @@
/* See LICENSE file for copyright and license details. */ /* 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[] = { static char *fontfallbacks[] = {
"dejavu", "dejavu",
"trollolo", "trollolo",

13
sent.c
View File

@ -97,7 +97,7 @@ static void usage();
static void xdraw(); static void xdraw();
static void xhints(); static void xhints();
static void xinit(); static void xinit();
static void xloadfonts(char *); static void xloadfonts();
static void bpress(XEvent *); static void bpress(XEvent *);
static void cmessage(XEvent *); static void cmessage(XEvent *);
@ -454,8 +454,8 @@ void run()
void usage() void usage()
{ {
die("sent " VERSION " (c) 2014 markus.teich@stusta.mhn.de\n" \ die("sent " VERSION " (c) 2015 markus.teich@stusta.mhn.de\n" \
"usage: sent [-f font] FILE1 [FILE2 ...]", argv0); "usage: sent FILE1 [FILE2 ...]", argv0);
} }
void xdraw() void xdraw()
@ -525,7 +525,7 @@ void xinit()
sc = drw_scm_create(d, "#000000", "#FFFFFF"); sc = drw_scm_create(d, "#000000", "#FFFFFF");
drw_setscheme(d, sc); drw_setscheme(d, sc);
xloadfonts(font); xloadfonts();
XStringListToTextProperty(&argv0, 1, &prop); XStringListToTextProperty(&argv0, 1, &prop);
XSetWMName(xw.dpy, xw.win, &prop); XSetWMName(xw.dpy, xw.win, &prop);
@ -536,7 +536,7 @@ void xinit()
XSync(xw.dpy, False); XSync(xw.dpy, False);
} }
void xloadfonts(char *fontstr) void xloadfonts()
{ {
int i, j; int i, j;
char *fstrs[LEN(fontfallbacks)]; char *fstrs[LEN(fontfallbacks)];
@ -601,9 +601,6 @@ int main(int argc, char *argv[])
FILE *fp = NULL; FILE *fp = NULL;
ARGBEGIN { ARGBEGIN {
case 'f':
font = EARGF(usage());
break;
case 'v': case 'v':
default: default:
usage(); usage();