summaryrefslogtreecommitdiff
path: root/pango/ellipsize.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-08-30 14:09:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-09-02 13:58:47 -0400
commit95ccc8910223d7d092f4cc30c93b4a5f9dcd301a (patch)
tree851d73e982d8b195089404b47cceb0b3152aae33 /pango/ellipsize.c
parent0068b78276c4ac7df95d97fa270a5e8ca4b58348 (diff)
downloadpango-95ccc8910223d7d092f4cc30c93b4a5f9dcd301a.tar.gz
Add an analysis flag to mark the ellipsis run
Without this, it is hard to determine if you are 'inside the ellipsis'. We need to know this in GTK+, e.g. to skip link processing. I decided not to turn the flags into an enum at the time to avoid possible language binding problems. https://bugzilla.gnome.org/show_bug.cgi?id=735719
Diffstat (limited to 'pango/ellipsize.c')
-rw-r--r--pango/ellipsize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/ellipsize.c b/pango/ellipsize.c
index 1c8aa241..ade33ec7 100644
--- a/pango/ellipsize.c
+++ b/pango/ellipsize.c
@@ -645,6 +645,8 @@ fixup_ellipsis_run (EllipsizeState *state)
level = MIN (level, state->run_info[i].run->item->analysis.level);
item->analysis.level = level;
+
+ item->analysis.flags |= PANGO_ANALYSIS_FLAG_IS_ELLIPSIS;
}
/* Computes the new list of runs for the line