allow testing the end position

2001-10-03  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextiter.c (test_log_attrs): allow testing the end
	position

	* gtk/gtktextbuffer.c (compute_log_attrs): update for pango
	changes

	* tests/testtextbuffer.c (logical_motion_tests): updates
This commit is contained in:
Havoc Pennington
2001-10-03 20:49:10 +00:00
committed by Havoc Pennington
parent 264afe83f8
commit 77dc57e960
10 changed files with 95 additions and 5 deletions

View File

@ -3419,11 +3419,15 @@ compute_log_attrs (const GtkTextIter *iter,
if (char_lenp)
*char_lenp = char_len;
attrs = g_new (PangoLogAttr, char_len);
attrs = g_new (PangoLogAttr, char_len + 1);
/* FIXME we need to follow PangoLayout and allow different language
* tags within the paragraph
*/
pango_get_log_attrs (paragraph, byte_len, -1,
gtk_text_iter_get_language (&start),
attrs);
attrs,
char_len + 1);
g_free (paragraph);