summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-07-02 16:33:20 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-07-02 16:33:20 +0000
commit37dc1dd695cd2db6dcda930866bf97c10076ca77 (patch)
tree214b3f9d8d6508725894695e80c77fce4ccd27bd /src/live_effects/parameter/point.cpp
parentDon't dereference NULL knotholder; fixes instant crash, but using the handles... (diff)
downloadinkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.tar.gz
inkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.zip
Enable status bar tips for LPE handles that are automatically created from PointParams
(bzr r6118)
Diffstat (limited to 'src/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index be8415d8d..84de8db05 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -32,7 +32,7 @@ namespace LivePathEffect {
PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr,
- Effect* effect, Geom::Point default_value )
+ Effect* effect, const gchar *htip, Geom::Point default_value)
: Geom::Point(default_value), Parameter(label, tip, key, wr, effect), defvalue(default_value)
{
oncanvas_editable = true;
@@ -40,10 +40,13 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
knot_shape = SP_KNOT_SHAPE_SQUARE;
knot_mode = SP_KNOT_MODE_XOR;
knot_color = 0x00ff0000;
+ handle_tip = g_strdup(htip);
}
PointParam::~PointParam()
{
+ if (handle_tip)
+ g_free(handle_tip);
}
void