95
95
KotoUndoContext *context;
98
98
context = koto_undo_manager_context_begin (priv->manager, _("Insert"));
100
100
state = g_slice_new0 (InsertState);
101
101
state->editable = editable;
102
102
state->text = g_strdup (text);
103
103
state->length = strlen (text);
104
104
state->position = *position;
107
107
(context, koto_undoable_new (insert_undo, insert_redo, insert_destroy, state));