Edje text: Use the ellipsis char instead of 3 dots.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 3 Feb 2011 08:55:40 +0000 (08:55 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 3 Feb 2011 08:55:40 +0000 (08:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@56670 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_text.c

index 7d30286..425f047 100644 (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);