Bug 551567 – DND mark broken

* gtk/gtktextbtree.c (redisplay_mark): invalidate mark properly
  Patch by Yevgen Muntyan.

svn path=/trunk/; revision=21342
This commit is contained in:
Christian Dywan 2008-09-11 00:44:51 +00:00
parent 7b7f8fc310
commit 4ea49b1705
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-09-11 Christian Dywan <christian@imendio.com>
Bug 551567 DND mark broken
* gtk/gtktextbtree.c (redisplay_mark): invalidate mark properly
Patch by Yevgen Muntyan.
2008-09-10 Björn Lindqvist <bjourne@gmail.com>
Bug 551699 gtk_scrolled_window_destroy() is broken

View File

@ -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