Enlightenment CVS committal Author : rephorm Project : e17 Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_container Modified Files: esmart_container.c esmart_container_smart.c Log Message: when adding elements, stack them properly within the layer (allowing swallowed containers to have their elements underneath other parts of the edje) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_container/esmart_container.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- esmart_container.c 8 Jan 2005 15:48:03 -0000 1.6 +++ esmart_container.c 8 Jan 2005 20:04:08 -0000 1.7 @@ -408,6 +408,9 @@ evas_object_layer_set(el->obj, evas_object_layer_get(cont->obj)); evas_object_layer_set(el->grabber, evas_object_layer_get(cont->obj)); + evas_object_stack_above(el->grabber, cont->obj); + evas_object_stack_above(el->obj, cont->obj); + evas_object_event_callback_add(el->grabber, EVAS_CALLBACK_MOUSE_DOWN, _cb_element_down, el); evas_object_event_callback_add(el->grabber, EVAS_CALLBACK_MOUSE_UP, _cb_element_up, el); evas_object_event_callback_add(el->grabber, EVAS_CALLBACK_MOUSE_MOVE, _cb_element_move, el); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_container/esmart_container_smart.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- esmart_container_smart.c 8 Jan 2005 15:08:00 -0000 1.3 +++ esmart_container_smart.c 8 Jan 2005 20:04:08 -0000 1.4 @@ -191,16 +191,17 @@ data = evas_object_smart_data_get(obj); + evas_object_stack_above(data->grabber, above); + evas_object_stack_above(data->clipper, above); + for (l = data->elements; l; l = l->next) { Container_Element *el = l->data; - evas_object_stack_above(el->obj, above); evas_object_stack_above(el->grabber, above); + evas_object_stack_above(el->obj, above); } - evas_object_stack_above(data->clipper, above); - evas_object_stack_above(data->grabber, above); } void ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs