From 9b99399b44ca89c608b466a6e6da1825259b0342 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 12 Aug 2013 13:19:45 +0100 Subject: [PATCH] Fix elementary building when --disable-ethumb is passed in. NB: This may not be the most Ideal fix, but it does work. Feel free to change to a "proper" fix if desired. This was just a quick hack for Mike to get things building again. Signed-off-by: Chris Michael --- legacy/elementary/src/lib/elm_thumb_common.h | 7 +++++++ legacy/elementary/src/lib/elm_widget_thumb.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_thumb_common.h b/legacy/elementary/src/lib/elm_thumb_common.h index 484f1a162e..8cb2d5b46a 100644 --- a/legacy/elementary/src/lib/elm_thumb_common.h +++ b/legacy/elementary/src/lib/elm_thumb_common.h @@ -14,6 +14,13 @@ typedef enum ELM_THUMB_ANIMATION_LAST } Elm_Thumb_Animation_Setting; +#ifndef ELM_ETHUMB +typedef int Ethumb_Thumb_FDO_Size; +typedef int Ethumb_Thumb_Aspect; +typedef int Ethumb_Thumb_Format; +typedef int Ethumb_Thumb_Orientation; +#endif + /** * Get the ethumb_client handle so custom configuration can be made. * diff --git a/legacy/elementary/src/lib/elm_widget_thumb.h b/legacy/elementary/src/lib/elm_widget_thumb.h index fdefe354ae..36f350acc9 100644 --- a/legacy/elementary/src/lib/elm_widget_thumb.h +++ b/legacy/elementary/src/lib/elm_widget_thumb.h @@ -37,6 +37,7 @@ struct _Elm_Thumb_Smart_Data const char *thumb_path; const char *thumb_key; Ethumb_Client_Async *request; +#endif double cropx; double cropy; @@ -51,7 +52,6 @@ struct _Elm_Thumb_Smart_Data Ethumb_Thumb_Orientation orient; Eina_Bool retry : 1; -#endif } thumb; Ecore_Event_Handler *eeh;