From 3c6b599c4cf984d196a638a5f3c056f2fd6a7b1e Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 12 Apr 2012 07:14:15 +0000 Subject: [PATCH] elm list/genlist: Renamed interval text get/set hook name. SVN revision: 70121 --- src/lib/elm_genlist.c | 4 ++-- src/lib/elm_list.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index be8c1c0..0027ef7 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3664,7 +3664,7 @@ _item_content_unset_hook(Elm_Gen_Item *it, const char *part) } static const char * -_item_text_hook(Elm_Gen_Item *it, const char *part) +_item_text_get_hook(Elm_Gen_Item *it, const char *part) { if (!it->itc->func.text_get) return NULL; return edje_object_part_text_get(VIEW(it), part); @@ -3761,7 +3761,7 @@ _elm_genlist_item_new(Widget_Data *wd, elm_widget_item_content_get_hook_set(it, _item_content_get_hook); elm_widget_item_content_set_hook_set(it, _item_content_set_hook); elm_widget_item_content_unset_hook_set(it, _item_content_unset_hook); - elm_widget_item_text_get_hook_set(it, _item_text_hook); + elm_widget_item_text_get_hook_set(it, _item_text_get_hook); elm_widget_item_disable_hook_set(it, _item_disable_hook); elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook); elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook); diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 9de44b1..1f45c70 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1132,7 +1132,7 @@ _item_content_unset_hook(const Elm_Object_Item *it, const char *part) } static void -_item_text_set(Elm_Object_Item *it, const char *part, const char *text) +_item_text_set_hook(Elm_Object_Item *it, const char *part, const char *text) { Elm_List_Item *list_it = (Elm_List_Item *)it; if (part && strcmp(part, "default")) return; @@ -1142,7 +1142,7 @@ _item_text_set(Elm_Object_Item *it, const char *part, const char *text) } static const char * -_item_text_get(const Elm_Object_Item *it, const char *part) +_item_text_get_hook(const Elm_Object_Item *it, const char *part) { if (part && strcmp(part, "default")) return NULL; return ((Elm_List_Item *)it)->label; @@ -1219,8 +1219,8 @@ _item_new(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Object *e elm_widget_item_content_set_hook_set(it, _item_content_set_hook); elm_widget_item_content_get_hook_set(it, _item_content_get_hook); elm_widget_item_content_unset_hook_set(it, _item_content_unset_hook); - elm_widget_item_text_set_hook_set(it, _item_text_set); - elm_widget_item_text_get_hook_set(it, _item_text_get); + elm_widget_item_text_set_hook_set(it, _item_text_set_hook); + elm_widget_item_text_get_hook_set(it, _item_text_get_hook); elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook); return it; } -- 2.7.4