Edje text: Use the ellipsis char instead of 3 dots.

SVN revision: 56670
This commit is contained in:
Tom Hacohen 2011-02-03 08:55:40 +00:00
parent 83e7cba435
commit 68943e9890
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#include "edje_private.h"
#define _ELLIP_STR "\xE2\x80\xA6"
/* returns with and height for this part.
*
@ -86,12 +86,12 @@ _edje_text_fit_set(char *buf, const char *text, int c1, int c2)
if (c1 >= 0)
{
strcpy(buf, "...");
strcpy(buf, _ELLIP_STR);
if (c2 >= 0)
{
strncat(buf, text + c1, c2 - c1);
strcat(buf, "...");
strcat(buf, _ELLIP_STR);
}
else
strcat(buf, text + c1);
@ -102,7 +102,7 @@ _edje_text_fit_set(char *buf, const char *text, int c1, int c2)
{
strncpy(buf, text, c2);
buf[c2] = 0;
strcat(buf, "...");
strcat(buf, _ELLIP_STR);
}
else
strcpy(buf, text);