Commit 55bf8814 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

list_view: Remove pf_show callback

parent b8b8b4c2
...@@ -126,7 +126,6 @@ typedef struct list_view ...@@ -126,7 +126,6 @@ typedef struct list_view
{ {
list_sys* p_sys; list_sys* p_sys;
void (*pf_del)(list_sys* p_sys); void (*pf_del)(list_sys* p_sys);
void (*pf_show)(list_sys* p_sys, Evas_Object* p_parent);
list_view_item* (*pf_append_item)(list_sys* p_sys, void* p_item); list_view_item* (*pf_append_item)(list_sys* p_sys, void* p_item);
void (*pf_clear)(list_sys* p_sys); void (*pf_clear)(list_sys* p_sys);
const void* (*pf_get_item)(list_view_item* p_list_item); const void* (*pf_get_item)(list_view_item* p_list_item);
......
...@@ -91,7 +91,11 @@ create_audio_list_type(view_sys *av, audio_view_type type ) ...@@ -91,7 +91,11 @@ create_audio_list_type(view_sys *av, audio_view_type type )
LOGD("Recycling View %i", type); LOGD("Recycling View %i", type);
} }
p_view->pf_show(p_view->p_sys, av->nf_toolbar); Evas_Object* p_list = p_view->pf_get_list(p_view->p_sys);
Elm_Object_Item *it = elm_naviframe_item_push(av->nf_toolbar, "", NULL, NULL, p_list, NULL);
elm_naviframe_item_title_enabled_set(it, EINA_FALSE, EINA_FALSE);
evas_object_show(p_list);
return p_view; return p_view;
} }
......
...@@ -40,15 +40,6 @@ list_view_clear(list_sys* p_list) ...@@ -40,15 +40,6 @@ list_view_clear(list_sys* p_list)
elm_genlist_clear(p_list->p_list); elm_genlist_clear(p_list->p_list);
} }
static void
list_view_show(list_sys* p_list, Evas_Object* p_parent)
{
//FIXME: This is wrong and makes assumptions about the parent widget
Elm_Object_Item *it = elm_naviframe_item_push(p_parent, "", NULL, NULL, p_list->p_list, NULL);
elm_naviframe_item_title_enabled_set(it, EINA_FALSE, EINA_FALSE);
evas_object_show(p_list->p_list);
}
static void static void
list_view_destroy(list_sys* p_list) list_view_destroy(list_sys* p_list)
{ {
...@@ -80,7 +71,6 @@ list_view_common_setup(list_view* p_view, list_sys* p_list, interface* p_intf, v ...@@ -80,7 +71,6 @@ list_view_common_setup(list_view* p_view, list_sys* p_list, interface* p_intf, v
p_list->p_default_item_class->item_style = "2line.top.3"; p_list->p_default_item_class->item_style = "2line.top.3";
/* Setup common callbacks */ /* Setup common callbacks */
p_view->pf_show = &list_view_show;
p_view->pf_del = &list_view_destroy; p_view->pf_del = &list_view_destroy;
p_view->pf_clear = &list_view_clear; p_view->pf_clear = &list_view_clear;
p_view->pf_get_list = &list_view_get_genlist; p_view->pf_get_list = &list_view_get_genlist;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment