gtk+ r21367 - in branches/gtk-2-12: . gtk



Author: matthiasc
Date: Fri Sep 12 04:21:42 2008
New Revision: 21367
URL: http://svn.gnome.org/viewvc/gtk+?rev=21367&view=rev

Log:
        Bug 551567 â DND mark broken

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



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/gtktextbtree.c

Modified: branches/gtk-2-12/gtk/gtktextbtree.c
==============================================================================
--- branches/gtk-2-12/gtk/gtktextbtree.c	(original)
+++ branches/gtk-2-12/gtk/gtktextbtree.c	Fri Sep 12 04:21:42 2008
@@ -2660,6 +2660,7 @@
 {
   GtkTextIter iter;
   GtkTextIter end;
+  gboolean cursor_only;
 
   _gtk_text_btree_get_iter_at_mark (mark->body.mark.tree,
                                    &iter,
@@ -2669,7 +2670,8 @@
   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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]