entry: Hide popover when touching elsewhere

Otherwise, the popover becomes 'sticky' and hard-to-dismiss.
This commit is contained in:
Matthias Clasen 2015-06-07 20:41:16 -04:00
parent bd65c14813
commit 3e386e0abb

View File

@ -4506,7 +4506,11 @@ gtk_entry_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
priv->drag_start_y = y;
}
}
else if (!extend_selection)
else
{
gtk_entry_selection_bubble_popup_unset (entry);
if (!extend_selection)
{
gtk_editable_set_position (editable, tmp_pos);
}
@ -4526,6 +4530,7 @@ gtk_entry_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
gtk_entry_set_positions (entry, tmp_pos, sel_end);
}
}
}
break;
case 2: