handler->noti_node = NULL;
handler->state = NOTILISTITEM_STATE_NORMAL;
- _item_handler_set(view, handler);
-
Evas_Object *focus = quickpanel_accessibility_ui_get_focus_object(view);
elm_object_part_content_set(view, "focus", focus);
elm_gesture_layer_attach(gl, view);
elm_gesture_layer_cb_set(gl, ELM_GESTURE_N_FLICKS, ELM_GESTURE_STATE_END, _flick_end_cb, view);
+ handler->gesture_layer = gl;
+
+ _item_handler_set(view, handler);
+
} else {
ERR("failed to create notification view(%s)"
, s_info.view_handlers[layout]->name);
}
}
+ if (handler->gesture_layer) {
+ evas_object_del(handler->gesture_layer);
+ }
+
free(handler);
}
-
evas_object_data_del(item, E_DATA_NOTI_LIST_ITEM_H);
evas_object_del(item);
item = NULL;