switch: Fix build

Partial revert of 2b6b5c1c8f, which
removed a little too much.
This commit is contained in:
Timm Bäder 2017-01-16 21:01:59 +01:00
parent 2b6b5c1c8f
commit 239f14cc96

View File

@ -191,7 +191,9 @@ gtk_switch_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
GtkSwitch *sw)
{
GtkSwitchPrivate *priv = sw->priv;
GtkAllocation allocation;
gtk_widget_get_allocation (GTK_WIDGET (sw), &allocation);
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
/* If the press didn't happen in the draggable handle,