mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
142e06cf65
A nice looking login interface to your favorite X-server. PR: 16161 Submitted by: Maxim Sobolev <sobomax@altavista.net>
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
--- resources.c.orig Sun Jul 25 11:09:29 1999
|
|
+++ resources.c Mon Jan 17 19:08:45 2000
|
|
@@ -80,10 +80,22 @@
|
|
}
|
|
|
|
/* Load fonts */
|
|
- resources->messageFont = XLoadQueryFont(dpy, preferences->messageFont);
|
|
- resources->inputFont = XLoadQueryFont(dpy, preferences->inputFont);
|
|
+ if ((resources->messageFont = XLoadQueryFont(dpy, preferences->messageFont)) == NULL) {
|
|
+ printError("could not load message font: %s\n%s%s%s%s%s", preferences->messageFont, \
|
|
+ "Try to edit your configuration file: ", appPath, "Themes/", preferences->theme, "/Settings");
|
|
+ return 0;
|
|
+ }
|
|
+ if ((resources->inputFont = XLoadQueryFont(dpy, preferences->inputFont)) == NULL) {
|
|
+ printError("could not load input font: %s\n%s%s%s%s%s", preferences->inputFont, \
|
|
+ "Try to edit your configuration file: ", appPath, "Themes/", preferences->theme, "/Settings");
|
|
+ return 0;
|
|
+ }
|
|
if (preferences->disableHostname == NO) {
|
|
- resources->hostnameFont = XLoadQueryFont(dpy, preferences->hostnameFont);
|
|
+ if ((resources->hostnameFont = XLoadQueryFont(dpy, preferences->hostnameFont)) == NULL) {
|
|
+ printError("could not load hostname font: %s\n%s%s%s%s%s", preferences->hostnameFont, \
|
|
+ "Try to edit your configuration file: ", appPath, "Themes/", preferences->theme, "/Settings");
|
|
+ return 0;
|
|
+ }
|
|
}
|
|
|
|
/* Get hostname */
|