From ca077a085c88f67738b8237beb2316e031ec7281 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Jun 2015 19:04:06 -0400 Subject: [PATCH] entry: Avoid criticals After the recent changes, we could end up calling gtk_entry_update_handles in cases where the text_handle has not be created (e.g. when dragging text from an entry). Avoid that. --- gtk/gtkentry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index c617a92a77..eb83363c47 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -4574,7 +4574,8 @@ gtk_entry_multipress_gesture_pressed (GtkGestureMultiPress *gesture, gtk_gesture_set_state (priv->drag_gesture, GTK_EVENT_SEQUENCE_CLAIMED); - gtk_entry_update_handles (entry, mode); + if (priv->text_handle) + gtk_entry_update_handles (entry, mode); } if (n_press >= 3)