Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Verb::delete_view ( Inkscape::UI::View::View view  )  [inherited]

A function to remove the action associated with a view.

Parameters:
view Which view's actions should be removed.
Returns:
None
This function looks for the action in _actions. If it is found then it is unreferenced and the entry in the action table is erased.

Definition at line 684 of file verbs.cpp.

References Inkscape::Verb::_actions.

Referenced by Inkscape::Verb::delete_all_view().

{
    if (_actions == NULL) return;
    if (_actions->empty()) return;

#if 0
    static int count = 0;
    std::cout << count++ << std::endl;
#endif

    ActionTable::iterator action_found = _actions->find(view);

    if (action_found != _actions->end()) {
        SPAction *action = action_found->second;
        nr_object_unref(NR_OBJECT(action));
        _actions->erase(action_found);
    }

    return;
}


Generated by  Doxygen 1.6.0   Back to index