From: Carsten H. (T. R. <ra...@ra...> - 2010-12-08 02:57:36
|
On Sun, 5 Dec 2010 18:01:35 -0200 Gustavo Sverzut Barbieri <bar...@pr...> said: > On Sun, Dec 5, 2010 at 6:12 AM, Fabiano Fidêncio > <fid...@pr...> wrote: > > Why not use eina_stringshare_replace() ? > > because he'll never remember of such utility i did consider it - i just decided not to. > > On Sun, Dec 5, 2010 at 1:12 AM, Enlightenment SVN > > <no-...@en...> wrote: > >> Log: > >> maybe fix del ref 0 string then add it back with same handle? > >> > >> > >> > >> Author: raster > >> Date: 2010-12-04 19:12:34 -0800 (Sat, 04 Dec 2010) > >> New Revision: 55264 > >> Trac: http://trac.enlightenment.org/e/changeset/55264 > >> > >> Modified: > >> trunk/edje/src/lib/edje_text.c > >> > >> Modified: trunk/edje/src/lib/edje_text.c > >> =================================================================== > >> --- trunk/edje/src/lib/edje_text.c 2010-12-04 16:02:20 UTC (rev 55263) > >> +++ trunk/edje/src/lib/edje_text.c 2010-12-05 03:12:34 UTC (rev 55264) > >> @@ -321,7 +321,7 @@ > >> Edje_Calc_Params *params, > >> Edje_Part_Description_Text *chosen_desc) > >> { > >> - const char *text; > >> + const char *text, *str; > >> const char *font; > >> char *font2 = NULL; > >> char *sfont = NULL; > >> @@ -553,8 +553,9 @@ > >> text = _edje_text_fit_x(ed, ep, params, text, font, size, sw, > >> &free_text); } > >> > >> + str = eina_stringshare_add(text); > >> if (ep->text.cache.out_str) eina_stringshare_del > >> (ep->text.cache.out_str); > >> - ep->text.cache.out_str = eina_stringshare_add(text); > >> + ep->text.cache.out_str = str; > >> ep->text.cache.in_w = sw; > >> ep->text.cache.in_h = sh; > >> ep->text.cache.out_size = size; > >> > >> > >> ------------------------------------------------------------------------------ > >> What happens now with your Lotus Notes apps - do you make another costly > >> upgrade, or settle for being marooned without product support? Time to move > >> off Lotus Notes and onto the cloud with Force.com, apps are easier to > >> build, use, and manage than apps on traditional platforms. Sign up for the > >> Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > >> _______________________________________________ > >> enlightenment-svn mailing list > >> enl...@li... > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > >> > > > > > > > > -- > > Fabiano Fidêncio > > ProFUSION embedded systems > > http://www.profusion.mobi > > > > ------------------------------------------------------------------------------ > > What happens now with your Lotus Notes apps - do you make another costly > > upgrade, or settle for being marooned without product support? Time to move > > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > > use, and manage than apps on traditional platforms. Sign up for the Lotus > > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > > _______________________________________________ > > enlightenment-devel mailing list > > enl...@li... > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > -- > Gustavo Sverzut Barbieri > http://profusion.mobi embedded systems > -------------------------------------- > MSN: bar...@gm... > Skype: gsbarbieri > Mobile: +55 (19) 9225-2202 > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > enlightenment-devel mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ra...@ra... |