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.
This commit is contained in:
Matthias Clasen 2015-06-08 19:04:06 -04:00
parent 1cc8de2412
commit ca077a085c

View File

@ -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)