summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorShivram U <shivaram.upadhyayula@wipro.com>2002-09-09 10:32:58 +0000
committerShivaram Upadhyayula <shivram_u@src.gnome.org>2002-09-09 10:32:58 +0000
commit9cce8c8c137b2792183ed27825adc671f0efa354 (patch)
treee5a03dc35d7f9cc646bfa29f3daf90554c89ce0e /gtk/gtktextview.c
parent762c7d55d768cd96aa760d7bae84e65ee3eb63fe (diff)
downloadgtk+-9cce8c8c137b2792183ed27825adc671f0efa354.tar.gz
If the end iter is also a part of the selection, then we are in the
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)
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 1e35a3c650..65a19d5a87 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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. */
}