gesture: Fix wrong assert in gtk_gesture_set_window

The window must be part of the event controller widget, so
fix the inverted logic.
This commit is contained in:
Carlos Garnacho 2014-05-27 17:33:31 +02:00
parent 49a6626884
commit e0fd901722

View File

@ -1341,7 +1341,7 @@ gtk_gesture_set_window (GtkGesture *gesture,
GtkWidget *window_widget;
gdk_window_get_user_data (window, (gpointer*) &window_widget);
g_return_if_fail (window_widget !=
g_return_if_fail (window_widget ==
gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)));
}