seoz pushed a commit to branch master.
commit 6c433df297046446531e80902c7644028f388ea0
Author: Daniel Juyung Seo <[email protected]>
Date: Wed Apr 17 15:11:00 2013 +0900
elm_index.c, elm_widget_index.h: flourish the internals of index.
1. added more internal documentation.
2. use EINA_TRUE/FALSE macro for Eina_Bool type.
---
src/lib/elm_index.c | 4 ++--
src/lib/elm_widget_index.h | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c
index ba1daf1..0e62952 100644
--- a/src/lib/elm_index.c
+++ b/src/lib/elm_index.c
@@ -85,7 +85,7 @@ _index_box_clear(Evas_Object *obj,
VIEW(it) = NULL;
}
- sd->level_active[level] = 0;
+ sd->level_active[level] = EINA_FALSE;
}
static char *
@@ -310,7 +310,7 @@ _index_box_auto_fill(Evas_Object *obj,
}
evas_object_smart_calculate(box);
- sd->level_active[level] = 1;
+ sd->level_active[level] = EINA_TRUE;
}
static void
diff --git a/src/lib/elm_widget_index.h b/src/lib/elm_widget_index.h
index 0ec72d8..1dbcc4d 100644
--- a/src/lib/elm_widget_index.h
+++ b/src/lib/elm_widget_index.h
@@ -31,7 +31,9 @@ struct _Elm_Index_Smart_Data
Evas_Coord dx, dy;
Ecore_Timer *delay;
double delay_change_time;
- Eina_Bool level_active[2];
+ Eina_Bool level_active[2]; /**< a flag for the activeness of a
+ level. activeness means the box is
+ filled with contents. */
Eina_Bool down : 1;
Eina_Bool horizontal : 1;
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter