edox: Add default background image.

SVN revision: 38360
master
Kim Woelders 14 years ago
parent d97d1a1d27
commit b5546a2d1a
  1. 3
      dox/E-docs/Makefile.am
  2. BIN
      dox/E-docs/bg.png
  3. 16
      dox/dox.c
  4. 1
      dox/dox.h
  5. 2
      dox/file.c

@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

@ -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

@ -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);

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

Loading…
Cancel
Save