Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Extension::Extension::deactivate ( void   ) 

This function diactivates the extension (which makes it unusable, but not deleted).

None This function is used to removed an extension from functioning, but not delete it completely. It sets the state to STATE_DEACTIVATED to mark to the world that it has been deactivated. It also removes the current implementation and replaces it with a standard one. This makes it so that we don't have to continually check if there is an implementation, but we are gauranteed to have a benign one.
It is important to note that there is no 'activate' function. Running this function is irreversable.

Definition at line 325 of file extension.cpp.

References imp, set_state(), and STATE_DEACTIVATED.


      /* Removing the old implementation, and making this use the default. */
      /* This should save some memory */
      delete imp;
      imp = new Implementation::Implementation();


Generated by  Doxygen 1.6.0   Back to index