From 28978461a7ef54d2ef8b6e4ed181fd8a544f3cb5 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 25 Sep 2009 14:43:46 +0200 Subject: [PATCH] Put OBJ(image) in $ifdefs so that conky produces more meaningful error message when compiled without imlib --- src/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.c b/src/core.c index f663b4b..e1bf77f 100644 --- a/src/core.c +++ b/src/core.c @@ -694,8 +694,10 @@ struct text_object *construct_text_object(const char *s, const char *arg, long obj_be_ifblock_endif(ifblock_opaque, obj); END OBJ(eval, 0) obj->data.s = strndup(arg ? arg : "", text_buffer_size); +#if defined(IMLIB2) && defined(X11) END OBJ(image, 0) obj->data.s = strndup(arg ? arg : "", text_buffer_size); +#endif /* IMLIB2 */ END OBJ(exec, 0) obj->data.s = strndup(arg ? arg : "", text_buffer_size); END OBJ(execp, 0) -- 1.7.9.5