gengrid/popup: Fix wrong return type of _item_del_pre_hook.
authorSangHyeon Lee <sh10233.lee@samsung.com>
Fri, 22 Aug 2014 16:52:53 +0000 (01:52 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Fri, 22 Aug 2014 16:53:08 +0000 (01:53 +0900)
commit6e9c218a9391a9d46a4791aafd7361479ca20b25
tree3a647ada0d0f6730d28f9f5d99d5480da14901d0
parent071fb95ab07132b96cd44b53cd3838269c7c4ded
gengrid/popup: Fix wrong return type of _item_del_pre_hook.

Summary:
elm_widget calls _item_del_pre_hook of each widget and widget can
decide item deletion by return type. But gengrid and popup widget implemented
those _item_del_pre_hook function as a void type.
So this commit fixs the return types to Eina_Bool and changes gengrid widget to return EINA_FALSE when
the item wants to be deleted later.
And when the item wants to be deleted directly, it returns EINA_TRUE.

@fix

Test Plan: test in demo.

Reviewers: seoz, raster, bluezery

Subscribers: Hermet, jaehwan

Differential Revision: https://phab.enlightenment.org/D872
src/lib/elc_popup.c
src/lib/elm_gengrid.c