1 #include <Elementary.h>
5 * @defgroup Thumb Thumb
7 * A thumb object is used for displaying the thumbnail of an image or video.
8 * You must have compiled Elementary with Ethumb_Client support and the DBus
9 * service must be present and auto-activated in order to have thumbnails to
12 * Signals that you can add callbacks for are:
14 * "clicked" - This is called when a user has clicked the thumb without dragging
16 * "clicked,double" - This is called when a user has double-clicked the thumb.
17 * "press" - This is called when a user has pressed down the thumb.
18 * "generate,start" - The thumbnail generation started.
19 * "generate,stop" - The generation process stopped.
20 * "generate,error" - The generation failed.
21 * "load,error" - The thumbnail image loading failed.
24 typedef struct _Widget_Data Widget_Data;
38 #ifdef HAVE_ELEMENTARY_ETHUMB
39 const char *thumb_path;
40 const char *thumb_key;
41 Ethumb_Exists *exists;
42 Ecore_Idle_Enterer *idler;
44 Ethumb_Thumb_Format format;
47 Ecore_Event_Handler *eeh;
48 Elm_Thumb_Animation_Setting anim_setting;
49 Eina_Bool on_hold : 1;
50 Eina_Bool is_video : 1;
51 Eina_Bool was_video : 1;
55 static const char *widtype = NULL;
57 static const char SIG_CLICKED[] = "clicked";
58 static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
59 static const char SIG_GENERATE_ERROR[] = "generate,error";
60 static const char SIG_GENERATE_START[] = "generate,start";
61 static const char SIG_GENERATE_STOP[] = "generate,stop";
62 static const char SIG_LOAD_ERROR[] = "load,error";
63 static const char SIG_PRESS[] = "press";
65 static const Evas_Smart_Cb_Description _signals[] =
68 {SIG_CLICKED_DOUBLE, ""},
69 {SIG_GENERATE_ERROR, ""},
70 {SIG_GENERATE_START, ""},
71 {SIG_GENERATE_STOP, ""},
77 #define EDJE_SIGNAL_GENERATE_START "elm,thumb,generate,start"
78 #define EDJE_SIGNAL_GENERATE_STOP "elm,thumb,generate,stop"
79 #define EDJE_SIGNAL_GENERATE_ERROR "elm,thumb,generate,error"
80 #define EDJE_SIGNAL_LOAD_ERROR "elm,thumb,load,error"
81 #define EDJE_SIGNAL_PULSE_START "elm,state,pulse,start"
82 #define EDJE_SIGNAL_PULSE_STOP "elm,state,pulse,stop"
84 struct _Ethumb_Client *_elm_ethumb_client = NULL;
85 Eina_Bool _elm_ethumb_connected = EINA_FALSE;
87 EAPI int ELM_ECORE_EVENT_ETHUMB_CONNECT = 0;
90 _del_hook(Evas_Object *obj)
92 Widget_Data *wd = elm_widget_data_get(obj);
94 #ifdef HAVE_ELEMENTARY_ETHUMB
95 if (wd->thumb.id >= 0)
97 ethumb_client_generate_cancel(_elm_ethumb_client, wd->thumb.id,
101 if (wd->thumb.exists)
103 ethumb_client_thumb_exists_cancel(wd->thumb.exists);
104 wd->thumb.exists = NULL;
108 ecore_idle_enterer_del(wd->thumb.idler);
109 wd->thumb.idler = NULL;
112 eina_stringshare_del(wd->thumb.thumb_path);
113 eina_stringshare_del(wd->thumb.thumb_key);
116 eina_stringshare_del(wd->file);
117 eina_stringshare_del(wd->key);
118 if (wd->eeh) ecore_event_handler_del(wd->eeh);
123 _theme_hook(Evas_Object *obj)
125 Widget_Data *wd = elm_widget_data_get(obj);
126 _elm_theme_object_set(obj, wd->frame, "thumb", "base",
127 elm_widget_style_get(obj));
130 #ifdef HAVE_ELEMENTARY_ETHUMB
132 _mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
134 Widget_Data *wd = data;
135 Evas_Event_Mouse_Down *ev = event_info;
139 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
140 wd->on_hold = EINA_TRUE;
142 wd->on_hold = EINA_FALSE;
143 if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
144 evas_object_smart_callback_call(wd->self, SIG_CLICKED_DOUBLE, NULL);
146 evas_object_smart_callback_call(wd->self, SIG_PRESS, NULL);
150 _mouse_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
152 Widget_Data *wd = data;
153 Evas_Event_Mouse_Up *ev = event_info;
157 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
158 wd->on_hold = EINA_TRUE;
160 wd->on_hold = EINA_FALSE;
162 evas_object_smart_callback_call(wd->self, SIG_CLICKED, NULL);
163 wd->on_hold = EINA_FALSE;
166 /* As we do use stat to check if a thumbnail is available, it's possible
167 that we end up accessing before the file is completly written on disk.
168 By using an idler enterer, I hope to wait enought before trying accessing
172 _retry_thumb(void *data)
174 Widget_Data *wd = data;
178 wd->thumb.idler = NULL;
180 if ((wd->is_video) && (wd->thumb.format == ETHUMB_THUMB_EET))
182 if (!edje_object_file_set(wd->view,
183 wd->thumb.thumb_path,
186 ERR("could not set file=%s key=%s for %s",
187 wd->thumb.thumb_path,
195 evas_object_image_file_set(wd->view,
196 wd->thumb.thumb_path,
197 wd->thumb.thumb_key);
198 r = evas_object_image_load_error_get(wd->view);
199 if (r != EVAS_LOAD_ERROR_NONE)
201 ERR("%s: %s", wd->thumb.thumb_path, evas_load_error_str(r));
206 edje_object_part_swallow(wd->frame, "elm.swallow.content", wd->view);
207 edje_object_size_min_get(wd->frame, &mw, &mh);
208 edje_object_size_min_restricted_calc(wd->frame, &mw, &mh, mw, mh);
209 evas_object_size_hint_min_set(wd->self, mw, mh);
210 eina_stringshare_replace(&(wd->thumb.file), wd->thumb.thumb_path);
211 eina_stringshare_replace(&(wd->thumb.key), wd->thumb.thumb_key);
212 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_STOP, "elm");
213 evas_object_smart_callback_call(wd->self, SIG_GENERATE_STOP, NULL);
215 eina_stringshare_del(wd->thumb.thumb_path);
216 wd->thumb.thumb_path = NULL;
218 eina_stringshare_del(wd->thumb.thumb_key);
219 wd->thumb.thumb_key = NULL;
221 return ECORE_CALLBACK_CANCEL;
224 eina_stringshare_del(wd->thumb.thumb_path);
225 wd->thumb.thumb_path = NULL;
227 eina_stringshare_del(wd->thumb.thumb_key);
228 wd->thumb.thumb_key = NULL;
230 evas_object_del(wd->view);
233 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_LOAD_ERROR, "elm");
234 evas_object_smart_callback_call(wd->self, SIG_LOAD_ERROR, NULL);
236 return ECORE_CALLBACK_CANCEL;
240 _finished_thumb(Widget_Data *wd,
241 const char *thumb_path,
242 const char *thumb_key)
248 evas = evas_object_evas_get(wd->self);
249 if ((wd->view) && (wd->is_video ^ wd->was_video))
251 evas_object_del(wd->view);
254 wd->was_video = wd->is_video;
256 if ((wd->is_video) &&
257 (ethumb_client_format_get(_elm_ethumb_client) == ETHUMB_THUMB_EET))
261 wd->view = edje_object_add(evas);
264 ERR("could not create edje object");
267 elm_widget_sub_object_add(wd->self, wd->view);
270 if (!edje_object_file_set(wd->view, thumb_path, "movie/thumb"))
272 wd->thumb.thumb_path = eina_stringshare_ref(thumb_path);
273 wd->thumb.thumb_key = eina_stringshare_ref(thumb_key);
274 wd->thumb.format = ethumb_client_format_get(_elm_ethumb_client);
275 wd->thumb.idler = ecore_idle_enterer_add(_retry_thumb, wd);
283 wd->view = evas_object_image_filled_add(evas);
286 ERR("could not create image object");
289 elm_widget_sub_object_add(wd->self, wd->view);
292 evas_object_image_file_set(wd->view, thumb_path, thumb_key);
293 r = evas_object_image_load_error_get(wd->view);
294 if (r != EVAS_LOAD_ERROR_NONE)
296 WRN("%s: %s", thumb_path, evas_load_error_str(r));
297 wd->thumb.thumb_path = eina_stringshare_ref(thumb_path);
298 wd->thumb.thumb_key = eina_stringshare_ref(thumb_key);
299 wd->thumb.format = ethumb_client_format_get(_elm_ethumb_client);
300 wd->thumb.idler = ecore_idle_enterer_add(_retry_thumb, wd);
305 edje_object_part_swallow(wd->frame, "elm.swallow.content", wd->view);
306 edje_object_size_min_get(wd->frame, &mw, &mh);
307 edje_object_size_min_restricted_calc(wd->frame, &mw, &mh, mw, mh);
308 evas_object_size_hint_min_set(wd->self, mw, mh);
309 eina_stringshare_replace(&(wd->thumb.file), thumb_path);
310 eina_stringshare_replace(&(wd->thumb.key), thumb_key);
311 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_STOP, "elm");
312 evas_object_smart_callback_call(wd->self, SIG_GENERATE_STOP, NULL);
316 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_LOAD_ERROR, "elm");
317 evas_object_smart_callback_call(wd->self, SIG_LOAD_ERROR, NULL);
321 _finished_thumb_cb(void *data, Ethumb_Client *c __UNUSED__, int id, const char *file, const char *key, const char *thumb_path, const char *thumb_key, Eina_Bool success)
323 Widget_Data *wd = data;
325 EINA_SAFETY_ON_FALSE_RETURN(wd->thumb.id == id);
328 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_PULSE_STOP, "elm");
332 _finished_thumb(wd, thumb_path, thumb_key);
336 ERR("could not generate thumbnail for %s (key: %s)", file, key ? key : "");
337 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_ERROR, "elm");
338 evas_object_smart_callback_call(wd->self, SIG_GENERATE_ERROR, NULL);
342 _thumb_exists(Ethumb_Client *client __UNUSED__, Ethumb_Exists *thread,
343 Eina_Bool exists, void *data)
345 Widget_Data *wd = data;
347 if (ethumb_client_thumb_exists_check(thread))
350 wd->thumb.exists = NULL;
354 const char *thumb_path, *thumb_key;
357 ethumb_client_thumb_path_get(_elm_ethumb_client, &thumb_path,
359 _finished_thumb(wd, thumb_path, thumb_key);
362 else if ((wd->thumb.id = ethumb_client_generate
363 (_elm_ethumb_client, _finished_thumb_cb, wd, NULL)) != -1)
365 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_PULSE_START, "elm");
366 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_START, "elm");
367 evas_object_smart_callback_call(wd->self, SIG_GENERATE_START, NULL);
372 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_ERROR, "elm");
373 evas_object_smart_callback_call(wd->self, SIG_GENERATE_ERROR, NULL);
379 _thumb_apply(Widget_Data *wd)
381 if (wd->thumb.id > 0)
383 ethumb_client_generate_cancel
384 (_elm_ethumb_client, wd->thumb.id, NULL, NULL, NULL);
388 if (wd->thumb.exists)
390 ethumb_client_thumb_exists_cancel(wd->thumb.exists);
391 wd->thumb.exists = NULL;
396 ecore_idle_enterer_del(wd->thumb.idler);
397 wd->thumb.idler = NULL;
400 if (!wd->file) return;
402 ethumb_client_file_set(_elm_ethumb_client, wd->file, wd->key);
403 wd->thumb.exists = ethumb_client_thumb_exists(_elm_ethumb_client,
409 _thumb_apply_cb(void *data, int type __UNUSED__, void *ev __UNUSED__)
412 return ECORE_CALLBACK_RENEW;
416 _thumb_show(Widget_Data *wd)
418 evas_object_show(wd->frame);
420 if (elm_thumb_ethumb_client_connected())
427 wd->eeh = ecore_event_handler_add(ELM_ECORE_EVENT_ETHUMB_CONNECT,
428 _thumb_apply_cb, wd);
432 _thumb_show_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
438 _thumb_hide_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
440 Widget_Data *wd = data;
442 evas_object_hide(wd->frame);
444 if (wd->thumb.id >= 0)
446 ethumb_client_generate_cancel
447 (_elm_ethumb_client, wd->thumb.id, NULL, NULL, NULL);
450 edje_object_signal_emit(wd->frame, EDJE_SIGNAL_GENERATE_STOP, "elm");
451 evas_object_smart_callback_call(wd->self, SIG_GENERATE_STOP, NULL);
454 if (wd->thumb.exists)
456 ethumb_client_thumb_exists_cancel(wd->thumb.exists);
457 wd->thumb.exists = NULL;
462 ecore_idle_enterer_del(wd->thumb.idler);
463 wd->thumb.idler = NULL;
468 ecore_event_handler_del(wd->eeh);
476 static int _elm_need_ethumb = 0;
478 static void _on_die_cb(void *, Ethumb_Client *);
481 _connect_cb(void *data __UNUSED__, Ethumb_Client *c, Eina_Bool success)
485 ethumb_client_on_server_die_callback_set(c, _on_die_cb, NULL, NULL);
486 _elm_ethumb_connected = EINA_TRUE;
487 ecore_event_add(ELM_ECORE_EVENT_ETHUMB_CONNECT, NULL, NULL, NULL);
490 _elm_ethumb_client = NULL;
494 _on_die_cb(void *data __UNUSED__, Ethumb_Client *c __UNUSED__)
496 ethumb_client_disconnect(_elm_ethumb_client);
497 _elm_ethumb_client = NULL;
498 _elm_ethumb_connected = EINA_FALSE;
499 _elm_ethumb_client = ethumb_client_connect(_connect_cb, NULL, NULL);
504 _elm_unneed_ethumb(void)
507 if (--_elm_need_ethumb) return;
509 ethumb_client_disconnect(_elm_ethumb_client);
510 _elm_ethumb_client = NULL;
511 ethumb_client_shutdown();
512 ELM_ECORE_EVENT_ETHUMB_CONNECT = 0;
517 _elm_thumb_dropcb(void *data __UNUSED__, Evas_Object *o, Elm_Selection_Data *drop)
519 if ((!o) || (!drop) || (!drop->data)) return EINA_FALSE;
520 elm_thumb_file_set(o, drop->data, NULL);
525 * This must be called before any other function that handle with
526 * elm_thumb objects or ethumb_client instances.
531 elm_need_ethumb(void)
534 if (_elm_need_ethumb++) return EINA_TRUE;
535 ELM_ECORE_EVENT_ETHUMB_CONNECT = ecore_event_type_new();
536 ethumb_client_init();
537 _elm_ethumb_client = ethumb_client_connect(_connect_cb, NULL, NULL);
545 * Add a new thumb object to the parent.
547 * @param parent The parent object.
548 * @return The new object or NULL if it cannot be created.
550 * @see elm_thumb_file_set()
551 * @see elm_thumb_ethumb_client_get()
556 elm_thumb_add(Evas_Object *parent)
561 Evas_Coord minw, minh;
563 ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL);
565 ELM_SET_WIDTYPE(widtype, "thumb");
566 elm_widget_type_set(obj, "thumb");
567 elm_widget_sub_object_add(parent, obj);
568 elm_widget_data_set(obj, wd);
569 elm_widget_del_hook_set(obj, _del_hook);
570 elm_widget_theme_hook_set(obj, _theme_hook);
571 elm_widget_can_focus_set(obj, EINA_FALSE);
573 wd->frame = edje_object_add(e);
574 _elm_theme_object_set(obj, wd->frame, "thumb", "base", "default");
575 elm_widget_resize_object_set(obj, wd->frame);
577 edje_object_size_min_calc(obj, &minw, &minh);
578 evas_object_size_hint_min_set(obj, minw, minh);
586 wd->on_hold = EINA_FALSE;
587 wd->is_video = EINA_FALSE;
588 wd->was_video = EINA_FALSE;
590 #ifdef HAVE_ELEMENTARY_ETHUMB
591 wd->thumb.thumb_path = NULL;
592 wd->thumb.thumb_key = NULL;
593 wd->thumb.exists = NULL;
594 wd->thumb.idler = NULL;
595 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN,
597 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP,
599 evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW,
601 evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE,
605 // TODO: convert Elementary to subclassing of Evas_Smart_Class
606 // TODO: and save some bytes, making descriptions per-class and not instance!
607 evas_object_smart_callbacks_descriptions_set(obj, _signals);
612 * Reload thumbnail if it was generated before.
614 * This is useful if the ethumb client configuration changed, like its
615 * size, aspect or any other property one set in the handle returned
616 * by elm_thumb_ethumb_client_get().
618 * @param obj The thumb object to reload
620 * @see elm_thumb_file_set()
625 elm_thumb_reload(Evas_Object *obj)
627 ELM_CHECK_WIDTYPE(obj, widtype);
628 Widget_Data *wd = elm_widget_data_get(obj);
630 eina_stringshare_replace(&(wd->thumb.file), NULL);
631 eina_stringshare_replace(&(wd->thumb.key), NULL);
633 #ifdef HAVE_ELEMENTARY_ETHUMB
634 if (evas_object_visible_get(obj))
640 * Set the file that will be used as thumbnail.
642 * The file can be an image or a video (in that case, acceptable extensions are:
643 * avi, mp4, ogv, mov, mpg and wmv). To start the video animation, use the
644 * function elm_thumb_animate().
646 * @param obj The thumb object.
647 * @param file The path to file that will be used as thumb.
648 * @param key The key used in case of an EET file.
650 * @see elm_thumb_file_get()
651 * @see elm_thumb_reload()
652 * @see elm_thumb_animate()
657 elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key)
659 ELM_CHECK_WIDTYPE(obj, widtype);
660 Eina_Bool file_replaced, key_replaced;
661 Widget_Data *wd = elm_widget_data_get(obj);
663 file_replaced = eina_stringshare_replace(&(wd->file), file);
664 key_replaced = eina_stringshare_replace(&(wd->key), key);
669 const char **ext, *ptr;
670 static const char *extensions[] =
672 ".avi", ".mp4", ".ogv", ".mov", ".mpg", ".wmv", NULL
675 prefix_size = eina_stringshare_strlen(wd->file) - 4;
676 if (prefix_size >= 0)
678 ptr = wd->file + prefix_size;
679 wd->is_video = EINA_FALSE;
680 for (ext = extensions; *ext; ext++)
681 if (!strcasecmp(ptr, *ext))
683 wd->is_video = EINA_TRUE;
689 eina_stringshare_replace(&(wd->thumb.file), NULL);
690 eina_stringshare_replace(&(wd->thumb.key), NULL);
692 #ifdef HAVE_ELEMENTARY_ETHUMB
693 if (((file_replaced) || (key_replaced)) && (evas_object_visible_get(obj)))
699 * Get the image or video path and key used to generate the thumbnail.
701 * @param obj The thumb object.
702 * @param file Pointer to filename.
703 * @param key Pointer to key.
705 * @see elm_thumb_file_set()
706 * @see elm_thumb_path_get()
707 * @see elm_thumb_animate()
712 elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key)
714 ELM_CHECK_WIDTYPE(obj, widtype);
715 Widget_Data *wd = elm_widget_data_get(obj);
724 * Get the path and key to the image or video generated by ethumb.
726 * One just need to make sure that the thumbnail was generated before getting
727 * its path; otherwise, the path will be NULL. One way to do that is by asking
728 * for the path when/after the "generate,stop" smart callback is called.
730 * @param obj The thumb object.
731 * @param file Pointer to thumb path.
732 * @param key Pointer to thumb key.
734 * @see elm_thumb_file_get()
739 elm_thumb_path_get(const Evas_Object *obj, const char **file, const char **key)
741 ELM_CHECK_WIDTYPE(obj, widtype);
742 Widget_Data *wd = elm_widget_data_get(obj);
745 *file = wd->thumb.file;
747 *key = wd->thumb.key;
751 * Set the animation state for the thumb object. If its content is an animated
752 * video, you may start/stop the animation or tell it to play continuously and
755 * @param obj The thumb object.
756 * @param setting The animation setting.
758 * @see elm_thumb_file_set()
763 elm_thumb_animate_set(Evas_Object *obj, Elm_Thumb_Animation_Setting setting)
765 ELM_CHECK_WIDTYPE(obj, widtype);
766 Widget_Data *wd = elm_widget_data_get(obj);
768 EINA_SAFETY_ON_TRUE_RETURN(setting >= ELM_THUMB_ANIMATION_LAST);
770 wd->anim_setting = setting;
771 if (setting == ELM_THUMB_ANIMATION_LOOP)
772 edje_object_signal_emit(wd->view, "animate_loop", "");
773 else if (setting == ELM_THUMB_ANIMATION_START)
774 edje_object_signal_emit(wd->view, "animate", "");
775 else if (setting == ELM_THUMB_ANIMATION_STOP)
776 edje_object_signal_emit(wd->view, "animate_stop", "");
780 * Get the animation state for the thumb object.
782 * @param obj The thumb object.
783 * @return getting The animation setting or @c ELM_THUMB_ANIMATION_LAST,
786 * @see elm_thumb_file_get()
790 EAPI Elm_Thumb_Animation_Setting
791 elm_thumb_animate_get(const Evas_Object *obj)
793 ELM_CHECK_WIDTYPE(obj, widtype) ELM_THUMB_ANIMATION_LAST;
794 Widget_Data *wd = elm_widget_data_get(obj);
796 return wd->anim_setting;
800 * Get the ethumb_client handle so custom configuration can be made.
801 * This must be called before the objects are created to be sure no object is
802 * visible and no generation started.
804 * @return Ethumb_Client instance or NULL.
809 * #include <Elementary.h>
810 * #ifndef ELM_LIB_QUICKLAUNCH
812 * elm_main(int argc, char **argv)
814 * Ethumb_Client *client;
820 * client = elm_thumb_ethumb_client_get();
823 * ERR("could not get ethumb_client");
826 * ethumb_client_size_set(client, 100, 100);
827 * ethumb_client_crop_align_set(client, 0.5, 0.5);
830 * // Create elm_thumb objects here
843 elm_thumb_ethumb_client_get(void)
845 return _elm_ethumb_client;
849 * Get the ethumb_client connection state.
851 * @return EINA_TRUE if the client is connected to the server or
852 * EINA_FALSE otherwise.
855 elm_thumb_ethumb_client_connected(void)
857 return _elm_ethumb_connected;
861 elm_thumb_editable_set(Evas_Object *obj, Eina_Bool edit)
863 ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
864 Widget_Data *wd = elm_widget_data_get(obj);
866 if (!wd) return EINA_FALSE;
868 if (wd->edit == edit) return EINA_TRUE;
872 elm_drop_target_add(obj, ELM_SEL_FORMAT_IMAGE,
873 _elm_thumb_dropcb, obj);
875 elm_drop_target_del(obj);
881 elm_thumb_editable_get(const Evas_Object *obj)
883 ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
884 Widget_Data *wd = elm_widget_data_get(obj);
886 if (!wd) return EINA_FALSE;
890 /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/