Commit 7adc38a6 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

GtkGestureMultiPress: Remove superfluous NULL check

The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.
parent b831e97a
......@@ -403,7 +403,7 @@ gtk_gesture_multi_press_new (GtkWidget *widget)
* gtk_gesture_multi_press_set_area:
* @gesture: a #GtkGesture
* @gesture: a #GtkGestureMultiPress
* @rect: (allow-none): rectangle to receive coordinates on
* If @rect is non-%NULL, the press area will be checked to be
......@@ -425,7 +425,6 @@ gtk_gesture_multi_press_set_area (GtkGestureMultiPress *gesture,
GtkGestureMultiPressPrivate *priv;
g_return_if_fail (GTK_IS_GESTURE_MULTI_PRESS (gesture));
g_return_if_fail (rect != NULL);
priv = gtk_gesture_multi_press_get_instance_private (gesture);
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