summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-04-25 13:31:37 +0000
committerHyoyoung Chang <hyoyoung@gmail.com>2012-04-25 13:31:37 +0000
commita3dff1a1d15edb23d563da1f74415c66004fda58 (patch)
tree8223223a1ad082e197ebd6701ddb412b63ca31c2 /src/lib
parent1a3f06f3d37d8cca248a6ebb1ecba16525f05cbc (diff)
genlist : clean up formatting
SVN revision: 70470
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_genlist.c114
1 files changed, 56 insertions, 58 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index ba8ed0e31..6455cd4f9 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -1572,9 +1572,9 @@ _scr_hold_timer_cb(void *data)
1572 1572
1573static void 1573static void
1574_decorate_item_finished_signal_cb(void *data, 1574_decorate_item_finished_signal_cb(void *data,
1575 Evas_Object *obj, 1575 Evas_Object *obj,
1576 const char *emission __UNUSED__, 1576 const char *emission __UNUSED__,
1577 const char *source __UNUSED__) 1577 const char *source __UNUSED__)
1578{ 1578{
1579 if (!data) return; 1579 if (!data) return;
1580 if (!obj) return; 1580 if (!obj) return;
@@ -1766,7 +1766,6 @@ _elm_genlist_item_state_update(Elm_Gen_Item *it, Item_Cache *itc)
1766 { 1766 {
1767 edje_object_signal_emit(VIEW(it), 1767 edje_object_signal_emit(VIEW(it),
1768 "elm,state,selected", "elm"); 1768 "elm,state,selected", "elm");
1769
1770 if (it->deco_all_view) 1769 if (it->deco_all_view)
1771 edje_object_signal_emit(it->deco_all_view, 1770 edje_object_signal_emit(it->deco_all_view,
1772 "elm,state,selected", "elm"); 1771 "elm,state,selected", "elm");
@@ -1801,7 +1800,6 @@ _elm_genlist_item_state_update(Elm_Gen_Item *it, Item_Cache *itc)
1801 edje_object_signal_emit(it->deco_all_view, 1800 edje_object_signal_emit(it->deco_all_view,
1802 "elm,state,selected", "elm"); 1801 "elm,state,selected", "elm");
1803 } 1802 }
1804
1805 if (elm_widget_item_disabled_get(it)) 1803 if (elm_widget_item_disabled_get(it))
1806 { 1804 {
1807 edje_object_signal_emit(VIEW(it), 1805 edje_object_signal_emit(VIEW(it),
@@ -1823,10 +1821,10 @@ _elm_genlist_item_state_update(Elm_Gen_Item *it, Item_Cache *itc)
1823 1821
1824static Eina_List* 1822static Eina_List*
1825_item_mode_content_realize(Elm_Gen_Item *it, 1823_item_mode_content_realize(Elm_Gen_Item *it,
1826 Evas_Object *target, 1824 Evas_Object *target,
1827 Eina_List **source, 1825 Eina_List **source,
1828 const char *parts, 1826 const char *parts,
1829 Eina_List **contents_list) 1827 Eina_List **contents_list)
1830{ 1828{
1831 Eina_List *res = *contents_list; 1829 Eina_List *res = *contents_list;
1832 1830
@@ -1863,10 +1861,10 @@ _item_mode_content_realize(Elm_Gen_Item *it,
1863 1861
1864static Eina_List* 1862static Eina_List*
1865_item_mode_content_unrealize(Elm_Gen_Item *it, 1863_item_mode_content_unrealize(Elm_Gen_Item *it,
1866 Evas_Object *target, 1864 Evas_Object *target,
1867 Eina_List **source, 1865 Eina_List **source,
1868 const char *parts, 1866 const char *parts,
1869 Eina_List **contents_list) 1867 Eina_List **contents_list)
1870{ 1868{
1871 Eina_List *res = *contents_list; 1869 Eina_List *res = *contents_list;
1872 1870
@@ -1905,9 +1903,9 @@ _item_cache_free(Item_Cache *itc)
1905 1903
1906static void 1904static void
1907_item_text_realize(Elm_Gen_Item *it, 1905_item_text_realize(Elm_Gen_Item *it,
1908 Evas_Object *target, 1906 Evas_Object *target,
1909 Eina_List **source, 1907 Eina_List **source,
1910 const char *parts) 1908 const char *parts)
1911{ 1909{
1912 if (it->itc->func.text_get) 1910 if (it->itc->func.text_get)
1913 { 1911 {
@@ -1939,9 +1937,9 @@ _item_text_realize(Elm_Gen_Item *it,
1939 1937
1940static Eina_List * 1938static Eina_List *
1941_item_content_unrealize(Elm_Gen_Item *it, 1939_item_content_unrealize(Elm_Gen_Item *it,
1942 Evas_Object *target, 1940 Evas_Object *target,
1943 Eina_List **source, 1941 Eina_List **source,
1944 const char *parts) 1942 const char *parts)
1945{ 1943{
1946 Eina_List *res = it->content_objs; 1944 Eina_List *res = it->content_objs;
1947 1945
@@ -1971,9 +1969,9 @@ _item_content_unrealize(Elm_Gen_Item *it,
1971 1969
1972static Eina_List * 1970static Eina_List *
1973_item_content_realize(Elm_Gen_Item *it, 1971_item_content_realize(Elm_Gen_Item *it,
1974 Evas_Object *target, 1972 Evas_Object *target,
1975 Eina_List **source, 1973 Eina_List **source,
1976 const char *parts) 1974 const char *parts)
1977{ 1975{
1978 Eina_List *res = it->content_objs; 1976 Eina_List *res = it->content_objs;
1979 1977
@@ -2011,9 +2009,9 @@ _item_content_realize(Elm_Gen_Item *it,
2011 2009
2012static void 2010static void
2013_item_state_realize(Elm_Gen_Item *it, 2011_item_state_realize(Elm_Gen_Item *it,
2014 Evas_Object *target, 2012 Evas_Object *target,
2015 Eina_List **source, 2013 Eina_List **source,
2016 const char *parts) 2014 const char *parts)
2017{ 2015{
2018 if (it->itc->func.state_get) 2016 if (it->itc->func.state_get)
2019 { 2017 {
@@ -2047,8 +2045,8 @@ _item_state_realize(Elm_Gen_Item *it,
2047 2045
2048static void 2046static void
2049_item_realize(Elm_Gen_Item *it, 2047_item_realize(Elm_Gen_Item *it,
2050 int in, 2048 int in,
2051 Eina_Bool calc) 2049 Eina_Bool calc)
2052{ 2050{
2053 const char *treesize; 2051 const char *treesize;
2054 char buf[1024]; 2052 char buf[1024];
@@ -2481,9 +2479,9 @@ _reorder_move_animator_cb(void *data)
2481 2479
2482static void 2480static void
2483_item_position(Elm_Gen_Item *it, 2481_item_position(Elm_Gen_Item *it,
2484 Evas_Object *view, 2482 Evas_Object *view,
2485 Evas_Coord it_x, 2483 Evas_Coord it_x,
2486 Evas_Coord it_y) 2484 Evas_Coord it_y)
2487{ 2485{
2488 if (!it) return; 2486 if (!it) return;
2489 if (!view) return; 2487 if (!view) return;
@@ -3193,17 +3191,17 @@ _scr_anim_stop(void *data,
3193} 3191}
3194 3192
3195static void 3193static void
3196_scr_drag_start(void *data, 3194_scr_drag_start(void *data,
3197 Evas_Object *obj __UNUSED__, 3195 Evas_Object *obj __UNUSED__,
3198 void *event_info __UNUSED__) 3196 void *event_info __UNUSED__)
3199{ 3197{
3200 evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_START, NULL); 3198 evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_START, NULL);
3201} 3199}
3202 3200
3203static void 3201static void
3204_scr_drag_stop(void *data, 3202_scr_drag_stop(void *data,
3205 Evas_Object *obj __UNUSED__, 3203 Evas_Object *obj __UNUSED__,
3206 void *event_info __UNUSED__) 3204 void *event_info __UNUSED__)
3207{ 3205{
3208 evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_STOP, NULL); 3206 evas_object_smart_callback_call(data, SIG_SCROLL_DRAG_STOP, NULL);
3209} 3207}
@@ -3823,7 +3821,7 @@ _item_block_new(Widget_Data *wd, Eina_Bool prepend)
3823} 3821}
3824 3822
3825static Eina_Bool 3823static Eina_Bool
3826_item_block_add(Widget_Data *wd, 3824_item_block_add(Widget_Data *wd,
3827 Elm_Gen_Item *it) 3825 Elm_Gen_Item *it)
3828{ 3826{
3829 Item_Block *itb = NULL; 3827 Item_Block *itb = NULL;
@@ -4143,8 +4141,8 @@ _item_idle_enterer(void *data)
4143} 4141}
4144 4142
4145static void 4143static void
4146_item_queue(Widget_Data *wd, 4144_item_queue(Widget_Data *wd,
4147 Elm_Gen_Item *it, 4145 Elm_Gen_Item *it,
4148 Eina_Compare_Cb cb) 4146 Eina_Compare_Cb cb)
4149{ 4147{
4150 if (it->item->queued) return; 4148 if (it->item->queued) return;
@@ -4850,8 +4848,8 @@ _elm_genlist_move_items_set(Elm_Gen_Item *it)
4850} 4848}
4851 4849
4852EAPI void 4850EAPI void
4853elm_genlist_item_expanded_set(Elm_Object_Item *it, 4851elm_genlist_item_expanded_set(Elm_Object_Item *it,
4854 Eina_Bool expanded) 4852 Eina_Bool expanded)
4855{ 4853{
4856 ELM_OBJ_ITEM_CHECK_OR_RETURN(it); 4854 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
4857 Elm_Gen_Item *_it = (Elm_Gen_Item *)it; 4855 Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
@@ -4897,13 +4895,13 @@ elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it)
4897} 4895}
4898 4896
4899static Eina_Bool 4897static Eina_Bool
4900_elm_genlist_item_compute_coordinates(Elm_Object_Item *it, 4898_elm_genlist_item_compute_coordinates(Elm_Object_Item *it,
4901 Elm_Genlist_Item_Scrollto_Type type, 4899 Elm_Genlist_Item_Scrollto_Type type,
4902 Eina_Bool bring_in, 4900 Eina_Bool bring_in,
4903 Evas_Coord *x, 4901 Evas_Coord *x,
4904 Evas_Coord *y, 4902 Evas_Coord *y,
4905 Evas_Coord *w, 4903 Evas_Coord *w,
4906 Evas_Coord *h) 4904 Evas_Coord *h)
4907{ 4905{
4908 Elm_Gen_Item *_it = (Elm_Gen_Item *)it; 4906 Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
4909 Evas_Coord gith = 0; 4907 Evas_Coord gith = 0;
@@ -5022,8 +5020,8 @@ elm_genlist_item_update(Elm_Object_Item *it)
5022} 5020}
5023 5021
5024EAPI void 5022EAPI void
5025elm_genlist_item_fields_update(Elm_Object_Item *it, 5023elm_genlist_item_fields_update(Elm_Object_Item *it,
5026 const char *parts, 5024 const char *parts,
5027 Elm_Genlist_Item_Field_Type itf) 5025 Elm_Genlist_Item_Field_Type itf)
5028{ 5026{
5029 ELM_OBJ_ITEM_CHECK_OR_RETURN(it); 5027 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
@@ -5080,7 +5078,7 @@ elm_genlist_item_fields_update(Elm_Object_Item *it,
5080} 5078}
5081 5079
5082EAPI void 5080EAPI void
5083elm_genlist_item_item_class_update(Elm_Object_Item *it, 5081elm_genlist_item_item_class_update(Elm_Object_Item *it,
5084 const Elm_Genlist_Item_Class *itc) 5082 const Elm_Genlist_Item_Class *itc)
5085{ 5083{
5086 ELM_OBJ_ITEM_CHECK_OR_RETURN(it); 5084 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
@@ -5165,7 +5163,7 @@ elm_genlist_item_tooltip_text_set(Elm_Object_Item *it,
5165} 5163}
5166 5164
5167EAPI void 5165EAPI void
5168elm_genlist_item_tooltip_content_cb_set(Elm_Object_Item *it, 5166elm_genlist_item_tooltip_content_cb_set(Elm_Object_Item *it,
5169 Elm_Tooltip_Item_Content_Cb func, 5167 Elm_Tooltip_Item_Content_Cb func,
5170 const void *data, 5168 const void *data,
5171 Evas_Smart_Cb del_cb) 5169 Evas_Smart_Cb del_cb)
@@ -5236,7 +5234,7 @@ elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it)
5236 5234
5237EAPI Eina_Bool 5235EAPI Eina_Bool
5238elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *it, 5236elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *it,
5239 Eina_Bool disable) 5237 Eina_Bool disable)
5240{ 5238{
5241 ELM_OBJ_ITEM_CHECK_OR_RETURN(it, EINA_FALSE); 5239 ELM_OBJ_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
5242 Elm_Gen_Item *_it = (Elm_Gen_Item *)it; 5240 Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
@@ -5283,8 +5281,8 @@ elm_genlist_item_cursor_unset(Elm_Object_Item *it)
5283} 5281}
5284 5282
5285EAPI void 5283EAPI void
5286elm_genlist_item_cursor_style_set(Elm_Object_Item *it, 5284elm_genlist_item_cursor_style_set(Elm_Object_Item *it,
5287 const char *style) 5285 const char *style)
5288{ 5286{
5289 elm_widget_item_cursor_style_set(it, style); 5287 elm_widget_item_cursor_style_set(it, style);
5290} 5288}
@@ -5469,9 +5467,9 @@ elm_genlist_realized_items_update(Evas_Object *obj)
5469} 5467}
5470 5468
5471EAPI void 5469EAPI void
5472elm_genlist_item_decorate_mode_set(Elm_Object_Item *it, 5470elm_genlist_item_decorate_mode_set(Elm_Object_Item *it,
5473 const char *decorate_it_type, 5471 const char *decorate_it_type,
5474 Eina_Bool decorate_it_set) 5472 Eina_Bool decorate_it_set)
5475{ 5473{
5476 ELM_OBJ_ITEM_CHECK_OR_RETURN(it); 5474 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
5477 Elm_Gen_Item *_it = (Elm_Gen_Item *)it; 5475 Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
@@ -5741,7 +5739,7 @@ elm_genlist_highlight_mode_get(const Evas_Object *obj)
5741} 5739}
5742 5740
5743EAPI void 5741EAPI void
5744elm_genlist_item_select_mode_set(Elm_Object_Item *it, 5742elm_genlist_item_select_mode_set(Elm_Object_Item *it,
5745 Elm_Object_Select_Mode mode) 5743 Elm_Object_Select_Mode mode)
5746{ 5744{
5747 ELM_OBJ_ITEM_CHECK_OR_RETURN(it); 5745 ELM_OBJ_ITEM_CHECK_OR_RETURN(it);