Logo Search packages:      
Sourcecode: inkscape version File versions

static void add_idle ( SPCanvas canvas  )  [static]

Convenience function to add an idle handler to a canvas.

Definition at line 2135 of file sp-canvas.cpp.

References idle_handler(), and SPCanvas::idle_id.

Referenced by sp_canvas_request_redraw(), and sp_canvas_request_update().

{
    if (canvas->idle_id != 0)
        return;

    canvas->idle_id = gtk_idle_add_priority (sp_canvas_update_priority, idle_handler, canvas);
}


Generated by  Doxygen 1.6.0   Back to index