diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-03-28 22:34:46 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-03-28 22:34:46 +0000 |
| commit | 291caa83b0eddd5cd34e82ab3b08792a767ac411 (patch) | |
| tree | c671bea70c46b20109cd9e0fd1b61b7bd30ca77b /src/gradient-drag.cpp | |
| parent | delete slow and redundant g_object properties, replacing them with fast inlin... (diff) | |
| download | inkscape-291caa83b0eddd5cd34e82ab3b08792a767ac411.tar.gz inkscape-291caa83b0eddd5cd34e82ab3b08792a767ac411.zip | |
use SPKnot setter methods instead of g_object_set_property
(bzr r323)
Diffstat (limited to 'src/gradient-drag.cpp')
| -rw-r--r-- | src/gradient-drag.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index 7e23b5750..2048966b0 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -758,12 +758,10 @@ GrDragger::GrDragger (GrDrag *parent, NR::Point p, GrDraggable *draggable) // create the knot this->knot = sp_knot_new (parent->desktop, NULL); - g_object_set (G_OBJECT (this->knot->item), "mode", SP_KNOT_MODE_XOR, NULL); - this->knot->fill [SP_KNOT_STATE_NORMAL] = GR_KNOT_COLOR_NORMAL; - this->knot->stroke [SP_KNOT_STATE_NORMAL] = 0x000000ff; - this->knot->stroke [SP_KNOT_STATE_DRAGGING] = 0x000000ff; - this->knot->stroke [SP_KNOT_STATE_MOUSEOVER] = 0x000000ff; - g_object_set (G_OBJECT (this->knot->item), "stroke_color", 0x000000ff, NULL); + this->knot->setMode(SP_KNOT_MODE_XOR); + this->knot->setFill(GR_KNOT_COLOR_NORMAL, GR_KNOT_COLOR_NORMAL, GR_KNOT_COLOR_NORMAL); + this->knot->setStroke(0x000000ff, 0x000000ff, 0x000000ff); + sp_knot_update_ctrl(this->knot); // move knot to the given point sp_knot_set_position (this->knot, &p, SP_KNOT_STATE_NORMAL); |
