[gtk+/touch-selection-improvements: 16/17] textview: hide the selection popover when moving the cursor



commit 7a574f6ba8a0f5458b69cc5d984228930ab7587b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 18 14:46:17 2014 +0100

    textview: hide the selection popover when moving the cursor
    
    It should appear on second click on the cursor position, as if previously
    hidden.

 gtk/gtktextview.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index ab92aba..06caa2f 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5231,7 +5231,10 @@ gtk_text_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
                 break;
               }
             else if (is_touchscreen)
-             gtk_text_buffer_place_cursor (get_buffer (text_view), &iter);
+              {
+                gtk_text_view_selection_bubble_popup_unset (text_view);
+                gtk_text_buffer_place_cursor (get_buffer (text_view), &iter);
+              }
            else
               gtk_text_view_start_selection_drag (text_view, &iter,
                                                   SELECT_CHARACTERS, extends);


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