From 291caa83b0eddd5cd34e82ab3b08792a767ac411 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 28 Mar 2006 22:34:46 +0000 Subject: use SPKnot setter methods instead of g_object_set_property (bzr r323) --- src/gradient-drag.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gradient-drag.cpp') 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); -- cgit v1.2.3