Some style changes, less ifdefs.
Mikael Magnusson mikachu@comhem.se
4 files changed,
13 insertions(+),
18 deletions(-)
M
Makefile.am
→
Makefile.am
@@ -244,6 +244,7 @@ openbox/grab.c \
openbox/grab.h \ openbox/group.c \ openbox/group.h \ + openbox/imageload.c \ openbox/imageload.h \ openbox/keyboard.c \ openbox/keyboard.h \@@ -284,9 +285,6 @@ openbox/translate.h \
openbox/window.c \ openbox/window.h -if USE_IMLIB2 - openbox_openbox_SOURCES += openbox/imageload.c -endif ## gnome-panel-control ##
M
openbox/imageload.c
→
openbox/imageload.c
@@ -26,6 +26,12 @@ #include "obrender/imagecache.h"
#include "imageload.h" #include <Imlib2.h> +#ifndef USE_IMLIB2 +RrImage* RrImageFetchFromFile(RrImageCache *cache, const gchar *name) +{ + return NULL; +} +#else static void CreateFileNameTable(RrImageCache *self) {@@ -133,3 +139,5 @@ imlib_free_image();
return rr_image; } + +#endif
M
openbox/imageload.h
→
openbox/imageload.h
@@ -1,11 +1,7 @@
#ifndef __imageload_h #define __imageload_h -#ifdef USE_IMLIB2 #include "obrender/render.h" RrImage* RrImageFetchFromFile(RrImageCache *cache, const gchar *name); -#else -#define RrImageFetchFromFile(cache, name) NULL -#endif #endif