From 4a23c9b4ccb9ab79ad68ec972d89bf69e24a9406 Mon Sep 17 00:00:00 2001 From: jypark Date: Fri, 17 Feb 2012 10:20:35 +0000 Subject: [PATCH] remove deprecated function. use elm genlist or elm gengrid instead of elm_gen git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68063 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Makefile.am | 1 - src/lib/elm_deprecated.h | 40 ------------- src/lib/elm_gen.c | 142 ----------------------------------------------- 3 files changed, 183 deletions(-) delete mode 100644 src/lib/elm_gen.c diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index fc61d64..c7a3756 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -169,7 +169,6 @@ elm_flip.c \ elm_flipselector.c \ elm_font.c \ elm_frame.c \ -elm_gen.c \ elm_gengrid.c \ elm_genlist.c \ elm_gen_common.h \ diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h index 098acbe..3b00fb5 100644 --- a/src/lib/elm_deprecated.h +++ b/src/lib/elm_deprecated.h @@ -1,44 +1,4 @@ /** - * Set the sensitivity amount which is be multiplied by the length of - * mouse dragging, for all Elementary application windows. - * - * @param friction the thumb scroll sensitivity friction. @c 0.1 for - * minimum sensitivity, @c 1.0 for maximum sensitivity. 0.25 - * is proper. - * - * @see elm_thumbscroll_sensitivity_friction_get() - * @note parameter value will get bound to 0.1 - 1.0 interval, always - * @deprecated Use elm_scroll_thumbscroll_sensitivity_friction_set() - * and elm_config_all_flush() - * - * @ingroup Scrolling - */ -EINA_DEPRECATED EAPI void elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction); - -EINA_DEPRECATED EAPI void elm_gen_clear(Evas_Object *obj); -EINA_DEPRECATED EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected); -EINA_DEPRECATED EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it); -EINA_DEPRECATED EAPI void elm_gen_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select); -EINA_DEPRECATED EAPI Eina_Bool elm_gen_always_select_mode_get(const Evas_Object *obj); -EINA_DEPRECATED EAPI void elm_gen_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select); -EINA_DEPRECATED EAPI Eina_Bool elm_gen_no_select_mode_get(const Evas_Object *obj); -EINA_DEPRECATED EAPI void elm_gen_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); -EINA_DEPRECATED EAPI void elm_gen_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); -EINA_DEPRECATED EAPI void elm_gen_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); -EINA_DEPRECATED EAPI void elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel); - -EINA_DEPRECATED EAPI void elm_gen_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize); -EINA_DEPRECATED EAPI void elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); -EINA_DEPRECATED EAPI void elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); -EINA_DEPRECATED EAPI void elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); -EINA_DEPRECATED EAPI void elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); -EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_first_item_get(const Evas_Object *obj); -EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_last_item_get(const Evas_Object *obj); -EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_next_get(const Elm_Gen_Item *it); -EINA_DEPRECATED EAPI Elm_Gen_Item *elm_gen_item_prev_get(const Elm_Gen_Item *it); -EINA_DEPRECATED EAPI Evas_Object *elm_gen_item_widget_get(const Elm_Gen_Item *it); - -/** * Get the widget object's handle which contains a given item * * @param it The Elementary object item diff --git a/src/lib/elm_gen.c b/src/lib/elm_gen.c deleted file mode 100644 index b0f135b..0000000 --- a/src/lib/elm_gen.c +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include "elm_priv.h" -#include "els_scroller.h" -#include "elm_gen_common.h" - -EAPI void -elm_gen_clear(Evas_Object *obj) -{ - elm_genlist_clear(obj); -} - -EAPI void -elm_gen_item_selected_set(Elm_Gen_Item *it, - Eina_Bool selected) -{ - elm_genlist_item_selected_set((Elm_Object_Item *) it, selected); -} - -EAPI Eina_Bool -elm_gen_item_selected_get(const Elm_Gen_Item *it) -{ - return elm_genlist_item_selected_get((const Elm_Object_Item *) it); -} - -EAPI void -elm_gen_always_select_mode_set(Evas_Object *obj, - Eina_Bool always_select) -{ - elm_genlist_always_select_mode_set(obj, always_select); -} - -EAPI Eina_Bool -elm_gen_always_select_mode_get(const Evas_Object *obj) -{ - return elm_genlist_always_select_mode_get(obj); -} - -EAPI void -elm_gen_no_select_mode_set(Evas_Object *obj, - Eina_Bool no_select) -{ - elm_genlist_no_select_mode_set(obj, no_select); -} - -EAPI Eina_Bool -elm_gen_no_select_mode_get(const Evas_Object *obj) -{ - return elm_genlist_no_select_mode_get(obj); -} - -EAPI void -elm_gen_bounce_set(Evas_Object *obj, - Eina_Bool h_bounce, - Eina_Bool v_bounce) -{ - elm_genlist_bounce_set(obj, h_bounce, v_bounce); -} - -EAPI void -elm_gen_bounce_get(const Evas_Object *obj, - Eina_Bool *h_bounce, - Eina_Bool *v_bounce) -{ - elm_genlist_bounce_get(obj, h_bounce, v_bounce); -} - -EAPI void -elm_gen_page_relative_set(Evas_Object *obj, - double h_pagerel, - double v_pagerel) -{ - _elm_genlist_page_relative_set(obj, h_pagerel, v_pagerel); -} - -EAPI void -elm_gen_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel) -{ - _elm_genlist_page_relative_get(obj, h_pagerel, v_pagerel); -} - -EAPI void -elm_gen_page_size_set(Evas_Object *obj, - Evas_Coord h_pagesize, - Evas_Coord v_pagesize) -{ - _elm_genlist_page_size_set(obj, h_pagesize, v_pagesize); -} - -EAPI void -elm_gen_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) -{ - _elm_genlist_current_page_get(obj, h_pagenumber, v_pagenumber); -} - -EAPI void -elm_gen_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber) -{ - _elm_genlist_last_page_get(obj, h_pagenumber, v_pagenumber); -} - -EAPI void -elm_gen_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) -{ - _elm_genlist_page_show(obj, h_pagenumber, v_pagenumber); -} - -EAPI void -elm_gen_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber) -{ - _elm_genlist_page_bring_in(obj, h_pagenumber, v_pagenumber); -} - -EAPI Elm_Gen_Item * -elm_gen_first_item_get(const Evas_Object *obj) -{ - return (Elm_Gen_Item *)elm_genlist_first_item_get(obj); -} - -EAPI Elm_Gen_Item * -elm_gen_last_item_get(const Evas_Object *obj) -{ - return (Elm_Gen_Item *)elm_genlist_last_item_get(obj); -} - -EAPI Elm_Gen_Item * -elm_gen_item_next_get(const Elm_Gen_Item *it) -{ - return (Elm_Gen_Item *) elm_genlist_item_next_get((Elm_Object_Item *) it); -} - -EAPI Elm_Gen_Item * -elm_gen_item_prev_get(const Elm_Gen_Item *it) -{ - return (Elm_Gen_Item *)elm_genlist_item_prev_get((Elm_Object_Item *) it); -} - -EAPI Evas_Object * -elm_gen_item_widget_get(const Elm_Gen_Item *it) -{ - return WIDGET(it); -} -- 2.7.4