From 37dc1dd695cd2db6dcda930866bf97c10076ca77 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 2 Jul 2008 16:33:20 +0000 Subject: Enable status bar tips for LPE handles that are automatically created from PointParams (bzr r6118) --- src/live_effects/parameter/point.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/live_effects/parameter/point.cpp') 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 -- cgit v1.2.3