Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/evas Modified Files: ewl_engine_evas.c Log Message: - remove the macro and use the proper functions to get/set layer information =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/engines/evas/ewl_engine_evas.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ewl_engine_evas.c 12 Feb 2007 13:16:04 -0000 1.11 +++ ewl_engine_evas.c 3 Mar 2007 00:22:53 -0000 1.12 @@ -233,6 +233,7 @@ ee_canvas_layer_update(Ewl_Widget *w) { Ewl_Widget *p; + int layer; DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("w", w); @@ -247,10 +248,11 @@ evas_object_raise(w->smart_object); DRETURN(DLEVEL_STABLE); } - - if (LAYER(w) == 0) + + layer = ewl_widget_layer_priority_get(w); + if (layer == 0) evas_object_stack_above(w->smart_object, p->fx_clip_box); - else if (LAYER(w) > 0) { + else if (layer > 0) { Evas_Object *above; if (!(above = ewl_widget_layer_neighbor_find_above(w))) @@ -296,7 +298,8 @@ /* ignore the widget itself */ if (w == found) continue; - if (LAYER(w) <= LAYER(found)) + if (ewl_widget_layer_priority_get(w) <= + ewl_widget_layer_priority_get(found)) break; ol = o; } @@ -331,7 +334,8 @@ /* ignore the widget itself */ if (w == found) continue; - if (LAYER(w) >= LAYER(found)) + if (ewl_widget_layer_priority_get(w) >= + ewl_widget_layer_priority_get(found)) break; ol = o; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs