Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_knot_update_ctrl ( SPKnot knot  ) 

Update knot's pixbuf and set its control state.

Definition at line 660 of file knot.cpp.

Referenced by sp_node_ensure_knot_exists(), and sp_node_set_selected().

{
    if (!knot->item) {
        return;
    }

    gtk_object_set(GTK_OBJECT(knot->item), "shape", knot->shape, NULL);
    gtk_object_set(GTK_OBJECT(knot->item), "mode", knot->mode, NULL);
    gtk_object_set(GTK_OBJECT(knot->item), "size", (gdouble) knot->size, NULL);
    gtk_object_set(GTK_OBJECT(knot->item), "anchor", knot->anchor, NULL);
    if (knot->pixbuf) {
        gtk_object_set(GTK_OBJECT (knot->item), "pixbuf", knot->pixbuf, NULL);
    }

    sp_knot_set_ctrl_state(knot);
}


Generated by  Doxygen 1.6.0   Back to index