diff options
author | Christian Dywan <cdywan@src.gnome.org> | 2008-09-11 00:44:51 +0000 |
---|---|---|
committer | Christian Dywan <cdywan@src.gnome.org> | 2008-09-11 00:44:51 +0000 |
commit | 4ea49b1705e954eb2caa2367df97f944707e394a (patch) | |
tree | 8de01ac09e11237b82d07c41444ba37e8b424fc0 /gtk/gtktextbtree.c | |
parent | 7b7f8fc31095a2cf56f1b24e92ae33f95af9b27e (diff) | |
download | gtk+-4ea49b1705e954eb2caa2367df97f944707e394a.tar.gz |
Bug 551567 – DND mark broken
* gtk/gtktextbtree.c (redisplay_mark): invalidate mark properly
Patch by Yevgen Muntyan.
svn path=/trunk/; revision=21342
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r-- | gtk/gtktextbtree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 47b24dae56..9a2dc14c39 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -2660,6 +2660,7 @@ redisplay_mark (GtkTextLineSegment *mark) { GtkTextIter iter; GtkTextIter end; + gboolean cursor_only; _gtk_text_btree_get_iter_at_mark (mark->body.mark.tree, &iter, @@ -2669,7 +2670,8 @@ redisplay_mark (GtkTextLineSegment *mark) gtk_text_iter_forward_char (&end); DV (g_print ("invalidating due to moving visible mark (%s)\n", G_STRLOC)); - _gtk_text_btree_invalidate_region (mark->body.mark.tree, &iter, &end, TRUE); + cursor_only = mark == mark->body.mark.tree->insert_mark->segment; + _gtk_text_btree_invalidate_region (mark->body.mark.tree, &iter, &end, cursor_only); } static void |