From 1e0a783b8dacabea36f0bbc62fc504bd2ca7f55a Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Fri, 17 Jun 2011 13:17:35 +0900 Subject: [PATCH] [controlbar] remove APIs about diasble, animation Change-Id: Ibf117451d704f04652337a36da82fbb828e0687b --- src/lib/Elementary.h.in | 6 --- src/lib/elm_controlbar.c | 113 ----------------------------------------------- 2 files changed, 119 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 91e7585..8ea39b6 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -2956,12 +2956,6 @@ extern "C" { EAPI void elm_controlbar_alpha_set(Evas_Object *obj, int alpha); EAPI void elm_controlbar_item_auto_align_set(Evas_Object *obj, Eina_Bool auto_align); EAPI void elm_controlbar_vertical_set(Evas_Object *obj, Eina_Bool vertical); - /*======= Please don't use this APIs =======*/ - EINA_DEPRECATED EAPI void elm_controlbar_item_disable_set(Elm_Controlbar_Item * it, Eina_Bool disable); - EINA_DEPRECATED EAPI Eina_Bool elm_controlbar_item_disable_get(Elm_Controlbar_Item * it); - EINA_DEPRECATED EAPI void elm_controlbar_animation_set(Evas_Object *obj, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data); - EINA_DEPRECATED EAPI void elm_controlbar_item_animation_set(Evas_Object *obj, Eina_Bool auto_animation, Eina_Bool selected_animation); - /*======= Just for test =======*/ /* SearchBar */ EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent); diff --git a/src/lib/elm_controlbar.c b/src/lib/elm_controlbar.c index 1552397..c880543 100644 --- a/src/lib/elm_controlbar.c +++ b/src/lib/elm_controlbar.c @@ -2334,12 +2334,6 @@ elm_controlbar_item_visible_get(Elm_Controlbar_Item * it) return EINA_TRUE; } -EAPI void -elm_controlbar_item_disable_set(Elm_Controlbar_Item * it, Eina_Bool disable) -{ - elm_controlbar_item_disabled_set(it, disable); -} - /** * Set item disable * @@ -2362,12 +2356,6 @@ elm_controlbar_item_disabled_set(Elm_Controlbar_Item * it, Eina_Bool disabled) if (it->base_item) elm_widget_disabled_set(it->base_item, disabled); } -EAPI Eina_Bool -elm_controlbar_item_disable_get(Elm_Controlbar_Item * it) -{ - return elm_controlbar_item_disabled_get(it); -} - /** * Get item disable * @@ -2669,104 +2657,3 @@ elm_controlbar_item_button_get(Elm_Controlbar_Item *it) return NULL; } - -EAPI void -elm_controlbar_animation_set(Evas_Object *obj, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data) -{ - printf("\n==================================\n"); - printf("This API will be deleted : %s\n", __func__); - printf("\n==================================\n"); -} - -EAPI void -elm_controlbar_item_animation_set(Evas_Object *obj, Eina_Bool auto_animation, Eina_Bool selected_animation) -{ - printf("\n==================================\n"); - printf("This API will be deleted : %s\n", __func__); - printf("\n==================================\n"); -} - -#if 0 -static Eina_Bool -init_animation(void *data) -{ - const Eina_List *l; - Elm_Controlbar_Item * item; - Widget_Data * wd = (Widget_Data *)data; - - wd->visible_items = eina_list_free(wd->visible_items); - EINA_LIST_FOREACH(wd->items, l, item) - { - if (item->order > 0) - { - wd->visible_items = eina_list_append(wd->visible_items, item->base_item); - } - } - - if (wd->ani_func) - wd->ani_func(wd->ani_data, wd->object, wd->visible_items); - - return ECORE_CALLBACK_CANCEL; -} -EAPI void -elm_controlbar_animation_set(Evas_Object *obj, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data) -{ - printf("\n==================================\n"); - printf("%s\n", __func__); - printf("==================================\n"); - printf("This API is just for test.\n"); - printf("Please don't use it!!\n"); - printf("Thank you.\n"); - printf("==================================\n"); - - ELM_CHECK_WIDTYPE(obj, widtype); - Widget_Data *wd = elm_widget_data_get(obj); - if (wd == NULL) - { - fprintf(stderr, "Cannot get smart data\n"); - return; - } - - // if (!func) - // { - wd->init_animation = EINA_TRUE; - - wd->ani_func = func; - wd->ani_data = data; - - ecore_idler_add(init_animation, wd); - // } -} - -EAPI void -elm_controlbar_item_animation_set(Evas_Object *obj, Eina_Bool auto_animation, Eina_Bool selected_animation) -{ - printf("\n==================================\n"); - printf("%s\n", __func__); - printf("==================================\n"); - printf("This API is just for test.\n"); - printf("Please don't use it!!\n"); - printf("Thank you.\n"); - printf("==================================\n"); - - ELM_CHECK_WIDTYPE(obj, widtype); - Widget_Data *wd = elm_widget_data_get(obj); - if (wd == NULL) - { - fprintf(stderr, "Cannot get smart data\n"); - return; - } - - if (auto_animation && !wd->effect_timer) - { - wd->effect_timer = ecore_timer_add(1.5, item_animation_effect, wd); - } - else - { - if (wd->effect_timer) ecore_timer_del(wd->effect_timer); - wd->effect_timer = NULL; - } - - wd->selected_animation = selected_animation; -} -#endif -- 2.7.4