aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-11-05 13:45:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-11-05 13:45:08 +0000
commit26a521d8e9512455029d0a091572a66a49e1f28c (patch)
tree551c4c5d67e039ff2cd765d1c6a5f1ae7bd8f2cf /src
parentDown event in a down callback. (diff)
downloadenlightenment-26a521d8e9512455029d0a091572a66a49e1f28c.tar.gz
ilist: look less like arse :)
SVN revision: 18320
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_ilist.c10
-rw-r--r--src/bin/e_test.c2
2 files changed, 7 insertions, 5 deletions
diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c
index d32e7f7ee..94b729909 100644
--- a/src/bin/e_ilist.c
+++ b/src/bin/e_ilist.c
@@ -97,10 +97,10 @@ e_ilist_append(Evas_Object *obj, Evas_Object *icon, char *label, void (*func) (
si = E_NEW(E_Smart_Item, 1);
si->sd = sd;
si->base_obj = edje_object_add(evas_object_evas_get(sd->smart_obj));
-// if (evas_list_count(sd->items) & 0x1)
-// e_theme_edje_object_set(si->base_obj, "base/theme/widgets",
-// "widgets/ilist_odd");
-// else
+ if (evas_list_count(sd->items) & 0x1)
+ e_theme_edje_object_set(si->base_obj, "base/theme/widgets",
+ "widgets/ilist_odd");
+ else
e_theme_edje_object_set(si->base_obj, "base/theme/widgets",
"widgets/ilist");
edje_object_part_text_set(si->base_obj, "label", label);
@@ -128,6 +128,7 @@ e_ilist_append(Evas_Object *obj, Evas_Object *icon, char *label, void (*func) (
edje_object_signal_emit(si->base_obj, "active", "");
if (si->func) si->func(si->data);
}
+ evas_object_lower(si->base_obj);
evas_object_event_callback_add(si->base_obj, EVAS_CALLBACK_MOUSE_DOWN, _e_smart_event_mouse_down, si);
evas_object_show(si->base_obj);
}
@@ -148,6 +149,7 @@ e_ilist_select_set(Evas_Object *obj, int n)
si = evas_list_nth(sd->items, sd->selected);
if (si)
{
+ evas_object_raise(si->base_obj);
edje_object_signal_emit(si->base_obj, "active", "");
if (si->func) si->func(si->data);
}
diff --git a/src/bin/e_test.c b/src/bin/e_test.c
index 965a4ff08..0f9cb5e29 100644
--- a/src/bin/e_test.c
+++ b/src/bin/e_test.c
@@ -392,7 +392,7 @@ _e_test_internal(E_Container *con)
tcon = con;
_e_test_timer(NULL);
}
-#elif 0
+#elif 1
struct _tmp
{