From ed98918fa2d80b3fd98904e27ab5118121bf8aec Mon Sep 17 00:00:00 2001 From: seoz Date: Thu, 7 Jul 2011 12:49:39 +0000 Subject: [PATCH] elm genlist/list/gengrid: Removed deprecated signal "clicked". Use "clicked,double" instead. The name was wrong and I added a proper signals few months ago. Not I removed wrong signals. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61115 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_gengrid.c | 1 - src/lib/elm_genlist.c | 5 +---- src/lib/elm_list.c | 5 +---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 95c821a..8589638 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -472,7 +472,6 @@ _event_hook(Evas_Object *obj, { item = elm_gengrid_selected_item_get(obj); evas_object_smart_callback_call(item->wd->self, SIG_CLICKED_DOUBLE, item); - evas_object_smart_callback_call(item->wd->self, "clicked", item); // will be removed } else return EINA_FALSE; diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 1964cba..c948995 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1418,10 +1418,7 @@ _mouse_down(void *data, _item_highlight(it); if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK) if ((!it->disabled) && (!it->display_only)) - { - evas_object_smart_callback_call(it->base.widget, SIG_CLICKED_DOUBLE, it); - evas_object_smart_callback_call(it->base.widget, "clicked", it); // will be removed - } + evas_object_smart_callback_call(it->base.widget, SIG_CLICKED_DOUBLE, it); if (it->long_timer) ecore_timer_del(it->long_timer); if (it->swipe_timer) ecore_timer_del(it->swipe_timer); it->swipe_timer = ecore_timer_add(0.4, _swipe_cancel, it); diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 1f34755..2272fdd 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -931,10 +931,7 @@ _mouse_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void it->swipe_timer = ecore_timer_add(0.4, _swipe_cancel, it); /* Always call the callbacks last - the user may delete our context! */ if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK) - { - evas_object_smart_callback_call(it->base.widget, SIG_CLICKED_DOUBLE, it); - evas_object_smart_callback_call(it->base.widget, "clicked", it); // will be removed - } + evas_object_smart_callback_call(it->base.widget, SIG_CLICKED_DOUBLE, it); wd->swipe = EINA_FALSE; wd->movements = 0; -- 2.7.4