[gtk+/touch-text-selection] Ignore select_words when updating handle positions



commit ccc4f0f133ce70a3b4484f70c105233479cb4a62
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 2 16:05:28 2012 -0400

    Ignore select_words when updating handle positions
    
    This fixes problems where the handles can appear stuck when
    double-click selecting and then dragging the handles.

 gtk/gtkentry.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 0d94a96..e642cd1 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -6217,11 +6217,7 @@ gtk_entry_handle_dragged (GtkTextHandle         *handle,
         {
           gint min_pos;
 
-          if (priv->select_words)
-            min_pos = gtk_entry_move_forward_word (entry, *min, TRUE);
-          else
-            min_pos = MAX (*min + 1, 0);
-
+          min_pos = MAX (*min + 1, 0);
           tmp_pos = MAX (tmp_pos, min_pos);
         }
 
@@ -6233,11 +6229,7 @@ gtk_entry_handle_dragged (GtkTextHandle         *handle,
         {
           gint max_pos;
 
-          if (priv->select_words)
-            max_pos = gtk_entry_move_backward_word (entry, *max, TRUE);
-          else
-            max_pos = *max - 1;
-
+          max_pos = *max - 1;
           *min = MIN (tmp_pos, max_pos);
         }
     }



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