From 8aaa126b0be8bd52a310c7330779d42a6e3e8b34 Mon Sep 17 00:00:00 2001 From: seoz Date: Thu, 28 Apr 2011 02:01:13 +0000 Subject: [PATCH] Elementary thumb: Added ethumb check routine. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58982 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_thumb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c index 78d00ea..222e2cf 100644 --- a/src/lib/elm_thumb.c +++ b/src/lib/elm_thumb.c @@ -35,7 +35,9 @@ struct _Widget_Data int id; const char *file; const char *key; +#ifdef HAVE_ELEMENTARY_ETHUMB Ethumb_Exists *exists; +#endif } thumb; Ecore_Event_Handler *eeh; Elm_Thumb_Animation_Setting anim_setting; @@ -473,12 +475,12 @@ elm_thumb_add(Evas_Object *parent) wd->key = NULL; wd->eeh = NULL; wd->thumb.id = -1; - wd->thumb.exists = NULL; wd->on_hold = EINA_FALSE; wd->is_video = EINA_FALSE; wd->was_video = EINA_FALSE; #ifdef HAVE_ELEMENTARY_ETHUMB + wd->thumb.exists = NULL; evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, wd); evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP, -- 2.7.4