notebook: Fix crash when dragging a tab
gtk_gesture_get_last_event can return NULL, so guard against that.
This commit is contained in:
committed by
Matthias Clasen
parent
c9d421eff3
commit
8aefa09765
@@ -2786,6 +2786,9 @@ gtk_notebook_gesture_released (GtkGestureMultiPress *gesture,
|
||||
button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
|
||||
event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
|
||||
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
if (event->type != GDK_BUTTON_RELEASE)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user