Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_ui_close_view ( GtkWidget *   ) 

Parameters:
widget unused

Definition at line 309 of file interface.cpp.

References SPDesktop::destroyWidget(), and SPDesktop::shutdown().

Referenced by Inkscape::FileVerb::perform(), and sp_event_context_private_root_handler().

{
      SPDesktop *dt = SP_ACTIVE_DESKTOP;

      if (dt == NULL) {
        return;
    }

    if (dt->shutdown()) {
        return; // Shutdown operation has been canceled, so do nothing
    }

    // Shutdown can proceed; use the stored reference to the desktop here instead of the current SP_ACTIVE_DESKTOP,
    // because the user might have changed the focus in the meantime (see bug #381357 on Launchpad)
    dt->destroyWidget();
}


Generated by  Doxygen 1.6.0   Back to index