label: Tweak selection behavior
Arrange for double-click-followed-by-drag to do select by words, not select-and-dnd. This matches the behavior in GtkTextView better and feels intuitive. Fixes: #2024
This commit is contained in:
committed by
Luca Bacci
parent
6b3b068ab0
commit
3bcdbc3fb2
@@ -5222,7 +5222,8 @@ gtk_label_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
{
|
||||
if (min < max && min <= index && index <= max)
|
||||
{
|
||||
info->in_drag = TRUE;
|
||||
if (!info->select_words)
|
||||
info->in_drag = TRUE;
|
||||
info->drag_start_x = start_x;
|
||||
info->drag_start_y = start_y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user