Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
aclass.c
Log Message:
Fix tooltip string localization.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/aclass.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- aclass.c 31 Dec 2004 08:49:12 -0000 1.3
+++ aclass.c 2 Jan 2005 10:05:28 -0000 1.4
@@ -671,12 +671,19 @@
}
else if (!strcmp(prm1, "Tooltip"))
{
+ /* FIXME - Multiple line strings may break */
if (aa)
- aa->tooltipstring =
- Estrdupcat2(aa->tooltipstring, "\n", atword(s, 2));
+ {
+ ss = Estrdupcat2(aa->tooltipstring, "\n", atword(s, 2));
+ aa->tooltipstring = (ss && ss[0]) ? Estrdup(_(ss)) : NULL;
+ _EFREE(ss);
+ }
else if (ac)
- ac->tooltipstring =
- Estrdupcat2(ac->tooltipstring, "\n", atword(s, 2));
+ {
+ ss = Estrdupcat2(ac->tooltipstring, "\n", atword(s, 2));
+ ac->tooltipstring = (ss && ss[0]) ? Estrdup(_(ss)) : NULL;
+ _EFREE(ss);
+ }
}
}
}
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs