diff options
author | Shivram U <shivaram.upadhyayula@wipro.com> | 2002-09-09 10:32:58 +0000 |
---|---|---|
committer | Shivaram Upadhyayula <shivram_u@src.gnome.org> | 2002-09-09 10:32:58 +0000 |
commit | 9cce8c8c137b2792183ed27825adc671f0efa354 (patch) | |
tree | e5a03dc35d7f9cc646bfa29f3daf90554c89ce0e /gtk/gtktextview.c | |
parent | 762c7d55d768cd96aa760d7bae84e65ee3eb63fe (diff) | |
download | gtk+-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.c | 3 |
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. */ } |