i wonder why these are needed given that the former code worked. Did
elm_index stop emitting "delay,changed"?

this is the second breakage that enjoy spots. The first was the expected
result for parent_widget from edje externals in a layout, before it was one
object and suddenly it changed. These kinds of breaks should be avoided,
they don't look like bugfixes, rather behavior changes.




On Mon, Feb 24, 2014 at 10:18 PM, Sanjeev BA <[email protected]> wrote:

> sanjeev pushed a commit to branch master.
>
>
> http://git.enlightenment.org/apps/enjoy.git/commit/?id=f74dae47d7b67253c156b36f9dc55c0d47d7a0bc
>
> commit f74dae47d7b67253c156b36f9dc55c0d47d7a0bc
> Author: Sanjeev BA <[email protected]>
> Date:   Tue Feb 25 10:18:07 2014 +0900
>
>     Get index working for enjoy.
>
>     Summary: Signed-off-by: Sanjeev BA <[email protected]>
>
>     Differential Revision: https://phab.enlightenment.org/D578
> ---
>  src/bin/page.c | 27 ++++++++++++++-------------
>  1 file changed, 14 insertions(+), 13 deletions(-)
>
> diff --git a/src/bin/page.c b/src/bin/page.c
> index d1a1277..2a6093c 100644
> --- a/src/bin/page.c
> +++ b/src/bin/page.c
> @@ -145,6 +145,13 @@ struct _Page
>      }                                                           \
>    while (0)
>
> +static void
> +_page_index_changed(void *data __UNUSED__, Evas_Object *o __UNUSED__,
> void *event_info)
> +{
> +   Elm_Object_Item *glit = data;
> +   elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP);
> +}
> +
>  static DB *
>  _page_db_get(const Evas_Object *obj)
>  {
> @@ -190,22 +197,22 @@ _page_populate(void *data)
>              (isalpha(letter) && (page->last_index_letter[0] != letter)))
>            {
>               if ((page->first) && (!page->last_index_letter[0]))
> -               elm_index_item_append(page->index, "Special", NULL,
> page->first);
> +               elm_index_item_append(page->index, "Special",
> _page_index_changed, page->first);
>
>               page->last_index_letter[0] = letter;
> -             elm_index_item_append(page->index, page->last_index_letter,
> NULL, glit);
> +             elm_index_item_append(page->index, page->last_index_letter,
> _page_index_changed, glit);
>            }
>          if (!page->first) page->first = glit;
>          eina_hash_set(page->od_to_list_item, od, glit);
>          page->num_elements++;
>       }
> -
> +   elm_index_level_go(page->index, 0);
>     return EINA_TRUE;
>
>   end:
>     if (cls->after_populate)
>       cls->after_populate(page);
> -
> +   elm_index_level_go(page->index, 0);
>     page->populate = NULL;
>     return EINA_FALSE;
>  }
> @@ -221,13 +228,6 @@ _page_selected(void *data, Evas_Object *o, void
> *event_info)
>  }
>
>  static void
> -_page_index_changed(void *data __UNUSED__, Evas_Object *o __UNUSED__,
> void *event_info)
> -{
> -   Elm_Object_Item *glit = event_info;
> -   elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP);
> -}
> -
> -static void
>  _page_del(void *data, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void
> *event_info __UNUSED__)
>  {
>     Page *page = data;
> @@ -243,6 +243,7 @@ static void
>  _page_action_back(void *data, Evas_Object *obj __UNUSED__, const char
> *emission __UNUSED__, const char *source __UNUSED__)
>  {
>     Page *page = data;
> +   INF("Pressed Back");
>     evas_object_smart_callback_call(page->layout, "back", page->layout);
>  }
>
> @@ -337,8 +338,8 @@ _page_add(Evas_Object *parent, void *model,
> Eina_Iterator *it, const char *title
>     if (edje_object_part_exists(page->edje_list, "ejy.swallow.index"))
>       {
>          page->index = elm_index_add(obj_list);
> -        evas_object_smart_callback_add
> -          (page->index, "delay,changed", _page_index_changed, page);
> +        /*evas_object_smart_callback_add
> +          (page->index, "delay,changed", _page_index_changed, page);*/
>          elm_object_part_content_set(obj_list, "ejy.swallow.index",
> page->index);
>       }
>
>
> --
>
>
>


-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (19) 9225-2202
Contact: http://www.gustavobarbieri.com.br/contact
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to