On Wed, 7 Mar 2012 08:07:34 -0800 "Enlightenment SVN" <no-re...@enlightenment.org> wrote:
> Log: > elm genlist: Deprecated elm_genlist_compress_mode_set/get and > elm_genlist_height_for_width_mode_set/get. Use > elm_genlist_mode_set(obj, ELM_LIST_COMPRESS) instead. This may > introduce bugs or performance issue but I will fix this soon. > > Signed-off-by: Daniel Juyung Seo <juyung....@samsung.com> > > Author: seoz > Date: 2012-03-07 08:07:34 -0800 (Wed, 07 Mar 2012) > New Revision: 68985 > Trac: http://trac.enlightenment.org/e/changeset/68985 > > Modified: > trunk/elementary/src/bin/test_genlist.c > trunk/elementary/src/bin/test_store.c > trunk/elementary/src/examples/genlist_example_02.c > trunk/elementary/src/examples/genlist_example_03.c > trunk/elementary/src/lib/elm_deprecated.h > trunk/elementary/src/lib/elm_gen_common.h > trunk/elementary/src/lib/elm_genlist.c trunk/elementary/src/lib/elm_genlist.h > ---------- > EAPI void > -elm_genlist_compress_mode_set(Evas_Object *obj, > - Eina_Bool compress) > -{ > - ELM_CHECK_WIDTYPE(obj, widtype); > - Widget_Data *wd = elm_widget_data_get(obj); > - if (!wd) return; > - wd->compress = !!compress; > - if (!compress) elm_genlist_homogeneous_set(obj, EINA_FALSE); > -} > - > -EAPI Eina_Bool > -elm_genlist_compress_mode_get(const Evas_Object *obj) > -{ > - ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; > - Widget_Data *wd = elm_widget_data_get(obj); > - if (!wd) return EINA_FALSE; > - return wd->compress; > -} > - > -EAPI void > -elm_genlist_height_for_width_mode_set(Evas_Object *obj, > - Eina_Bool height_for_width) > -{ > - ELM_CHECK_WIDTYPE(obj, widtype); > - Widget_Data *wd = elm_widget_data_get(obj); > - if (!wd) return; > - wd->height_for_width = !!height_for_width; > - if (wd->height_for_width) > - { > - elm_genlist_homogeneous_set(obj, EINA_FALSE); > - elm_genlist_compress_mode_set(obj, EINA_TRUE); > - } > -} > - > -EAPI Eina_Bool > -elm_genlist_height_for_width_mode_get(const Evas_Object *obj) > -{ > - ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; > - Widget_Data *wd = elm_widget_data_get(obj); > - if (!wd) return EINA_FALSE; > - return wd->height_for_width; > -} > - THIS IS NOT THE CORRECT WAY TO DEPRECATE AN API. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel