Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::UI::Dialogs::TraceDialogImpl::responseCallback ( int  response_id  ) 

Callback from OK or Cancel

Default response from the dialog. Let's intercept it

Definition at line 311 of file tracedialog.cpp.

References abort(), hide(), and potraceProcess().

Referenced by TraceDialogImpl().

{
    
    if (response_id == GTK_RESPONSE_OK)
        {
        int panelNr = notebook.get_current_page();
        //g_message("selected panel:%d\n", panelNr);

        if (panelNr == 0)
            {
            potraceProcess(true);
            }
        }
    else if (response_id == GTK_RESPONSE_CANCEL)
        {
        abort();
        }
    else
        {
        hide();
        return;
        }



}


Generated by  Doxygen 1.6.0   Back to index