textview: hide the selection popover when moving the cursor

It should appear on second click on the cursor position, as if previously
hidden.
This commit is contained in:
Carlos Garnacho
2014-12-18 14:46:17 +01:00
parent b8d160c637
commit 7a574f6ba8

View File

@@ -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);