[sodipodi] Make 'Path' a known object by providing the description



commit 0c89f699ea8962188b1a7f5bd521e20a1519de86
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 18 13:22:32 2009 +0200

    Make 'Path' a known object by providing the description
---
 src/sp-path.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/sp-path.c b/src/sp-path.c
index e6fc2e9..73ef65d 100644
--- a/src/sp-path.c
+++ b/src/sp-path.c
@@ -33,6 +33,7 @@ static void sp_path_build (SPObject * object, SPDocument * document, SPRepr * re
 static void sp_path_set (SPObject *object, unsigned int key, const unsigned char *value);
 
 static SPRepr *sp_path_write (SPObject *object, SPRepr *repr, guint flags);
+static gchar *sp_path_description (SPItem * item);
 static void sp_path_write_transform (SPItem *item, SPRepr *repr, NRMatrixF *transform);
 
 static SPShapeClass *parent_class;
@@ -72,6 +73,7 @@ sp_path_class_init (SPPathClass * klass)
 	sp_object_class->set = sp_path_set;
 	sp_object_class->write = sp_path_write;
 
+	item_class->description = sp_path_description;
 	item_class->write_transform = sp_path_write_transform;
 }
 
@@ -219,6 +221,12 @@ sp_path_write (SPObject *object, SPRepr *repr, guint flags)
 	return repr;
 }
 
+static gchar *
+sp_path_description (SPItem * item)
+{
+	return g_strdup ("Path");
+}
+
 static void
 sp_path_write_transform (SPItem *item, SPRepr *repr, NRMatrixF *transform)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]