From ac7ffd6aff484dfced4681d72a2553038b94d37c Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 24 Jun 2004 15:06:02 +0000 Subject: do not limit the text len to 2047 characters 2004-06-24 Radek Doulik * gui/component/select-names/e-select-names-model.c (e_select_names_model_get_textification): do not limit the text len to 2047 characters See bug #60366 svn path=/trunk/; revision=26497 --- addressbook/ChangeLog | 8 ++++++++ addressbook/gui/component/select-names/e-select-names-model.c | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ce0475481a..1ffdb3ad50 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2004-06-24 Radek Doulik + + * gui/component/select-names/e-select-names-model.c + (e_select_names_model_get_textification): do not limit the text + len to 2047 characters + + See bug #60366 + 2004-06-23 Hans Petter Jansson * gui/contact-editor/contact-editor.glade: Set window to be invisible diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index 46b66d5ef1..49b9e5039d 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -22,9 +22,6 @@ #include "e-select-names-marshal.h" #include "eab-book-util.h" -#define MAX_LENGTH 2047 - - enum { E_SELECT_NAMES_MODEL_CHANGED, E_SELECT_NAMES_MODEL_RESIZED, @@ -214,12 +211,6 @@ e_select_names_model_get_textification (ESelectNamesModel *model, const char *se } text = g_strjoinv (separator, strv); - - if (g_utf8_strlen(text, -1) > MAX_LENGTH) { - char *p = g_utf8_offset_to_pointer (text, MAX_LENGTH); - *p = '\0'; - text = g_realloc (text, p - text + 1); - } g_free (strv); -- cgit v1.2.3