forked from AuroraMiddleware/gtk
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:
parent
49a6626884
commit
e0fd901722
@ -1341,7 +1341,7 @@ gtk_gesture_set_window (GtkGesture *gesture,
|
|||||||
GtkWidget *window_widget;
|
GtkWidget *window_widget;
|
||||||
|
|
||||||
gdk_window_get_user_data (window, (gpointer*) &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)));
|
gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user