edox: Add default background image.

SVN revision: 38360
This commit is contained in:
Kim Woelders 2008-12-30 17:02:40 +00:00
parent d97d1a1d27
commit b5546a2d1a
5 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,5 @@
edocdatadir = $(pkgdatadir)/E-docs
edocdata_DATA = exit1.png exit2.png next1.png next2.png prev1.png prev2.png title.png
edocdata_DATA = bg.png exit1.png exit2.png next1.png next2.png prev1.png prev2.png title.png
EXTRA_DIST = $(edocdata_DATA)

BIN
dox/E-docs/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -168,13 +168,13 @@ CreateWindow(Window parent, int x, int y, int ww, int hh)
static Imlib_Image
ImageLoad(const char *dir, const char *file)
{
Imlib_Image im;
char tmp[4096];
Esnprintf(tmp, sizeof(tmp), "%s/%s", dir, file);
im = imlib_load_image(tmp);
if (!exists(tmp))
return NULL;
return im;
return imlib_load_image(tmp);
}
static Imlib_Image
@ -186,7 +186,15 @@ ImageLoadDox(const char *file)
Imlib_Image
ImageLoadDoc(const char *file)
{
return ImageLoad(docdir, file);
Imlib_Image im;
im = ImageLoad(docdir, file);
if (im)
return im;
im = ImageLoadDox(file);
return im;
}
static void

View File

@ -122,6 +122,7 @@ void TextDraw(TextState * ts, Window win, char *text,
int justification);
/* file.c */
int exists(char *s);
void freestrlist(char **l, int num);
void word(char *s, int num, char *wd);

View File

@ -26,7 +26,7 @@
# include <wctype.h>
#endif
static int
int
exists(char *s)
{
struct stat st;