diff options
author | Mike Kestner <mkestner@ximian.com> | 2003-04-30 02:27:04 +0800 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2003-04-30 02:27:04 +0800 |
commit | c84abc0e0c36864750c551177b673550147e7f03 (patch) | |
tree | 26c6484879ff8c49389e6865c5f04106aec038e4 | |
parent | d4332bb119412e45d3d36951bdb82a27a77c37f9 (diff) | |
download | gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar.gz gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar.bz2 gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar.lz gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar.xz gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.tar.zst gsoc2013-evolution-c84abc0e0c36864750c551177b673550147e7f03.zip |
don't use unicode ellipsis so that we don't break on broken font setups.
2003-04-29 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): don't use unicode ellipsis so
that we don't break on broken font setups.
2003-04-29 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (generate_layout): don't set width on the layout
during edit
svn path=/trunk/; revision=21012
-rw-r--r-- | widgets/table/e-cell-text.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 43df53e378..12cd9af482 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -493,15 +493,12 @@ build_layout (ECellTextView *text_view, int row, const char *text, gint width) PangoLayoutLine *line = pango_layout_get_line (layout, 0); gchar *line_text = g_strdup (pango_layout_get_text (layout)); gchar *last_char = g_utf8_find_prev_char (line_text, line_text + line->length - 1); - gchar ellipsis[7]; - int len = g_unichar_to_utf8 (8230, ellipsis); - ellipsis[len] = '\0'; while (last_char && pango_layout_get_line_count (layout) > 1) { gchar *new_text; last_char = g_utf8_find_prev_char (line_text, last_char); if (last_char) *last_char = '\0'; - new_text = g_strconcat (line_text, ellipsis, NULL); + new_text = g_strconcat (line_text, "...", NULL); pango_layout_set_text (layout, new_text, -1); g_free (new_text); } @@ -533,8 +530,6 @@ generate_layout (ECellTextView *text_view, int model_col, int view_col, int row, if (edit && edit->layout && edit->model_col == model_col && edit->row == row) { g_object_ref (edit->layout); - if (width > 0) - pango_layout_set_width (edit->layout, width * PANGO_SCALE); return edit->layout; } |