summaryrefslogtreecommitdiff
path: root/src/bin/e_ilist.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-08-18 09:39:20 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-08-18 09:39:20 +0000
commit4383257c7dc4f851555b87df9210001d1cd02cb8 (patch)
tree4e8d753de8280de8d195188421a19397e18c80b9 /src/bin/e_ilist.c
parentc77fe04afed8c06ca0d7a4f6ea15392a8185c41e (diff)
downloadenlightenment-4383257c7dc4f851555b87df9210001d1cd02cb8.tar.gz
some ilist stackign changes...
SVN revision: 35536
Diffstat (limited to 'src/bin/e_ilist.c')
-rw-r--r--src/bin/e_ilist.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c
index dab1093c9a..7c9599e015 100644
--- a/src/bin/e_ilist.c
+++ b/src/bin/e_ilist.c
@@ -48,16 +48,18 @@ e_ilist_append(Evas_Object *obj, Evas_Object *icon, const char *label, int heade
{
E_Ilist_Item *si;
Evas_Coord mw = 0, mh = 0;
+ int isodd;
API_ENTRY return;
si = E_NEW(E_Ilist_Item, 1);
si->sd = sd;
si->o_base = edje_object_add(evas_object_evas_get(sd->o_smart));
+ isodd = evas_list_count(sd->items) & 0x1;
if (header)
e_theme_edje_object_set(si->o_base, "base/theme/widgets",
"e/widgets/ilist_header");
- else if (evas_list_count(sd->items) & 0x1)
+ else if (isodd)
e_theme_edje_object_set(si->o_base, "base/theme/widgets",
"e/widgets/ilist_odd");
else
@@ -84,6 +86,7 @@ e_ilist_append(Evas_Object *obj, Evas_Object *icon, const char *label, int heade
e_box_pack_end(sd->o_box, si->o_base);
e_box_pack_options_set(si->o_base, 1, 1, 1, 1, 0.5, 0.5,
mw, mh, 99999, 99999);
+ if (isodd) evas_object_lower(si->o_base);
e_box_thaw(sd->o_box);
evas_object_lower(sd->o_box);
@@ -99,16 +102,18 @@ e_ilist_append_relative(Evas_Object *obj, Evas_Object *icon, const char *label,
{
E_Ilist_Item *si, *ri;
Evas_Coord mw = 0, mh = 0;
+ int isodd;
API_ENTRY return;
si = E_NEW(E_Ilist_Item, 1);
si->sd = sd;
si->o_base = edje_object_add(evas_object_evas_get(sd->o_smart));
+ isodd = evas_list_count(sd->items) & 0x1;
if (header)
e_theme_edje_object_set(si->o_base, "base/theme/widgets",
"e/widgets/ilist_header");
- else if (evas_list_count(sd->items) & 0x1)
+ else if (isodd)
e_theme_edje_object_set(si->o_base, "base/theme/widgets",
"e/widgets/ilist_odd");
else
@@ -143,6 +148,7 @@ e_ilist_append_relative(Evas_Object *obj, Evas_Object *icon, const char *label,
e_box_pack_end(sd->o_box, si->o_base);
e_box_pack_options_set(si->o_base, 1, 1, 1, 1, 0.5, 0.5,
mw, mh, 99999, 99999);
+ if (isodd) evas_object_lower(si->o_base);
e_box_thaw(sd->o_box);
evas_object_lower(sd->o_box);
@@ -389,7 +395,7 @@ e_ilist_selected_set(Evas_Object *obj, int n)
si->selected = 1;
sd->selected = n;
- evas_object_raise(si->o_base);
+// evas_object_raise(si->o_base);
edje_object_signal_emit(si->o_base, "e,state,selected", "e");
if (si->func_hilight) si->func_hilight(si->data, si->data2);
if (sd->selector) return;