Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void sp_canvas_item_ungrab ( SPCanvasItem item,
guint32  etime 

Ungrabs the item, which must have been grabbed in the canvas, and ungrabs the mouse.

item A canvas item that holds a grab.
etime The timestamp for ungrabbing the mouse.

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

References SPCanvasItem::canvas, and SPCanvas::grabbed_item.

Referenced by pen_handle_button_release(), pencil_handle_button_release(), sp_event_context_private_root_handler(), and sp_knot_handler().

    g_return_if_fail (item != NULL);
    g_return_if_fail (SP_IS_CANVAS_ITEM (item));

    if (item->canvas->grabbed_item != item)

    item->canvas->grabbed_item = NULL;

    gdk_pointer_ungrab (etime);

Generated by  Doxygen 1.6.0   Back to index