test_dnd: clean up dnd sample code.

- fixed formatting.
- set timer pointer to null when canceling the timer.
This commit is contained in:
Daniel Juyung Seo 2013-12-10 01:03:27 +09:00
parent e67db2c832
commit 9207105580
1 changed files with 8 additions and 7 deletions

View File

@ -401,8 +401,8 @@ static Eina_Bool
_5s_timeout_gone(void *data)
{
printf("Cancel DnD\n");
Evas_Object *obj = data;
elm_drag_cancel(obj);
elm_drag_cancel(data);
_5s_timeout = NULL;
return ECORE_CALLBACK_CANCEL;
}
@ -688,7 +688,8 @@ static Eina_Bool
_grid_data_getcb(Evas_Object *obj, /* The genlist object */
Elm_Object_Item *it,
Elm_Drag_User_Info *info)
{ /* This called before starting to drag, mouse-down was on it */
{
/* This called before starting to drag, mouse-down was on it */
info->format = ELM_SEL_FORMAT_TARGETS;
info->createicon = _gl_createicon;
info->createdata = it;