Commit 69234066 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

flowbox: don’t select when rubberbanding over nothing

When rubberbanding over an empty area, everything is selected on gesture
end, which is a bit counter-intuitive.

https://bugzilla.gnome.org/show_bug.cgi?id=780735
parent 1082b777
...@@ -3139,7 +3139,9 @@ gtk_flow_box_drag_gesture_end (GtkGestureDrag *gesture, ...@@ -3139,7 +3139,9 @@ gtk_flow_box_drag_gesture_end (GtkGestureDrag *gesture,
if (!priv->rubberband_extend && !priv->rubberband_modify) if (!priv->rubberband_extend && !priv->rubberband_modify)
gtk_flow_box_unselect_all_internal (box); gtk_flow_box_unselect_all_internal (box);
if (priv->rubberband_first && priv->rubberband_last)
gtk_flow_box_select_all_between (box, priv->rubberband_first, priv->rubberband_last, priv->rubberband_modify); gtk_flow_box_select_all_between (box, priv->rubberband_first, priv->rubberband_last, priv->rubberband_modify);
gtk_flow_box_stop_rubberband (box); gtk_flow_box_stop_rubberband (box);
g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0); g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment