Skip to content
Commit c3714f37 authored by Sébastien Wilmet's avatar Sébastien Wilmet
Browse files

UndoManagerDefault: don't use the INVALID action

An INVALID action was used to distinguish from a NULL action in the
'modified_action' struct field.

But using NULL instead of INVALID works fine. The only place where an
INVALID value would make a different result is in
modified_changed_handler():

if (manager->priv->modified_action != NULL)
{
        g_message ("%s: oops", G_STRLOC);
        return;
}

If the rest of the code is correct, it doesn't change anything.

https://bugzilla.gnome.org/show_bug.cgi?id=694613
parent 2a9ddf58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment