]> Pileus Git - ~andy/gtk/commitdiff
If the end iter is also a part of the selection, then we are in the
authorShivram U <shivaram.upadhyayula@wipro.com>
Mon, 9 Sep 2002 10:32:58 +0000 (10:32 +0000)
committerShivaram Upadhyayula <shivram_u@src.gnome.org>
Mon, 9 Sep 2002 10:32:58 +0000 (10:32 +0000)
Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>

* gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
is also a part of the selection, then we are in the selection.
(#92768)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextview.c

index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 16a2c36b2114deb9d780c26832c575b6f3148637..3b3ec24a2f71083ea4c07d3327bd14c8aeae3886 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
+
+       * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
+       is also a part of the selection, then we are in the selection.
+       (#92768)
+
 2002-09-08  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Add AM_CONDITIONAL calls also in the non-x11
index 1e35a3c650c490d30e2b47438927c6c3a6e920ea..65a19d5a87c0aa37483e0458fb1d2c45dbbd314f 100644 (file)
@@ -5591,7 +5591,8 @@ gtk_text_view_drag_motion (GtkWidget        *widget,
     }                                 
   else if (gtk_text_buffer_get_selection_bounds (get_buffer (text_view),
                                             &start, &end) &&
-           gtk_text_iter_in_range (&newplace, &start, &end))
+           gtk_text_iter_compare (&newplace, &start) >= 0 &&
+           gtk_text_iter_compare (&newplace, &end) <= 0)
     {
       /* We're inside the selection. */
     }