From: <enl...@li...> - 2002-03-26 18:55:49
|
Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/estyle Dir : e17/libs/estyle/src Modified Files: estyle.c Log Message: Set the layer when the estyle_set_text is called, this should fix a problem with the stacking order being wrong when no layer has been set. Also added a font change in the test program to try and duplicate a bug reported by smugg, but so far have not seen it. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/estyle/src/estyle.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- estyle.c 21 Mar 2002 07:55:14 -0000 1.11 +++ estyle.c 26 Mar 2002 18:55:17 -0000 1.12 @@ -305,6 +305,8 @@ */ void estyle_set_text(Estyle * es, char *text) { + int layer; + CHECK_PARAM_POINTER("es", es); /* @@ -333,6 +335,12 @@ if (es->flags & ESTYLE_BIT_VISIBLE) estyle_style_show(es); + + /* + * Must adjust the layer of the text to ensure proper style stacking. + */ + layer = evas_get_layer(es->evas, es->bit); + estyle_set_layer(es, layer); __estyle_update(es); } |