diff options
author | Havoc Pennington <hp@redhat.com> | 2002-02-13 23:44:03 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-02-13 23:44:03 +0000 |
commit | a760ad804e1603ca6ee7e164e6cc5dc12e0f3b41 (patch) | |
tree | 9045f4a60cf810a3111e4a6e428a4e12f20b9458 /gtk/gtktextlayout.c | |
parent | 3a4a6edb79fc111a343f2caa7892787c74416e6a (diff) | |
download | gdk-pixbuf-a760ad804e1603ca6ee7e164e6cc5dc12e0f3b41.tar.gz |
just go ahead and flush all the first validate stuff if it hasn't been
2002-02-13 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush
all the first validate stuff if it hasn't been done, presumably
someone called process_updates at a weird time.
* tests/testtext.c (do_apply_colors): terminate on >= end, not >
end, avoids infinite loop when end is at the end of the buffer.
* gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
line data, we were adding it to the wrong line ("line" instead of
"start_line")
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 806d147f3..15358c95e 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -293,6 +293,7 @@ gtk_text_layout_default_style_changed (GtkTextLayout *layout) { g_return_if_fail (GTK_IS_TEXT_LAYOUT (layout)); + DV (g_print ("invalidating all due to default style change (%s)\n", G_STRLOC)); gtk_text_layout_invalidate_all (layout); } @@ -335,6 +336,7 @@ gtk_text_layout_set_contexts (GtkTextLayout *layout, layout->rtl_context = rtl_context; g_object_ref (G_OBJECT (rtl_context)); + DV (g_print ("invalidating all due to new pango contexts (%s)\n", G_STRLOC)); gtk_text_layout_invalidate_all (layout); } @@ -391,6 +393,7 @@ gtk_text_layout_set_screen_width (GtkTextLayout *layout, gint width) layout->screen_width = width; + DV (g_print ("invalidating all due to new screen width (%s)\n", G_STRLOC)); gtk_text_layout_invalidate_all (layout); } @@ -919,7 +922,8 @@ gtk_text_layout_real_wrap (GtkTextLayout *layout, GtkTextLineDisplay *display; g_return_val_if_fail (GTK_IS_TEXT_LAYOUT (layout), NULL); - + g_return_val_if_fail (line != NULL, NULL); + if (line_data == NULL) { line_data = _gtk_text_line_data_new (layout, line); |