Fix warnings and build errors.

Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68906
This commit is contained in:
Sanjeev BA 2012-03-07 08:55:37 +00:00 committed by Sanjeev BA
parent 11f84a83bf
commit c44c6722d8
2 changed files with 9 additions and 7 deletions

View File

@ -128,7 +128,8 @@ _index_delay_changed_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void
{
// called on a change but delayed in case multiple changes happen in a
// short timespan
elm_genlist_item_top_bring_in(elm_object_item_data_get(event_info));
elm_genlist_item_bring_in(elm_object_item_data_get(event_info),
ELM_GENLIST_ITEM_SCROLLTO_TOP);
}
void
@ -142,7 +143,8 @@ void
_index_selected_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
// called on final select
elm_genlist_item_top_bring_in(elm_object_item_data_get(event_info));
elm_genlist_item_bring_in(elm_object_item_data_get(event_info),
ELM_GENLIST_ITEM_SCROLLTO_TOP);
}
static void

View File

@ -140,7 +140,7 @@ _next_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
if (!glit) glit = elm_genlist_first_item_get(list);
elm_genlist_item_selected_set(glit, EINA_TRUE);
elm_genlist_item_show(glit);
elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_IN);
}
static void
@ -180,7 +180,7 @@ _middle_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__
Elm_Object_Item *glit = data;
if (!glit) return;
elm_genlist_item_middle_bring_in(glit);
elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
}
static void
@ -189,7 +189,7 @@ _middle_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED
Elm_Object_Item *glit = data;
if (!glit) return;
elm_genlist_item_middle_show(glit);
elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
}
static void
@ -198,7 +198,7 @@ _top_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
Elm_Object_Item *glit = data;
if (!glit) return;
elm_genlist_item_top_bring_in(glit);
elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP);
}
static void
@ -207,7 +207,7 @@ _top_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
Elm_Object_Item *glit = data;
if (!glit) return;
elm_genlist_item_top_show(glit);
elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP);
}
static void