From 61d77ab0774ed66466977d3c715f0d1a6b9238c3 Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 3 Feb 2011 08:55:40 +0000 Subject: [PATCH] Edje text: Use the ellipsis char instead of 3 dots. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@56670 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/edje_text.c b/src/lib/edje_text.c index 7d30286..425f047 100644 --- a/src/lib/edje_text.c +++ b/src/lib/edje_text.c @@ -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); -- 2.7.4