Code

Fixed problem when swatches were larger than provided area
[inkscape.git] / src / knot.h
index 795eeb8e30064f2d860dc2b5810efad69a9ec146..ceeca0169b28294f82c26c593035907083d55e9e 100644 (file)
@@ -36,8 +36,7 @@ class SPKnotClass;
  * A knot is a draggable object, with callbacks to change something by
  * dragging it, visuably represented by a canvas item (mostly square).
  */
-struct SPKnot {
-    GObject object;
+struct SPKnot : GObject {
     SPDesktop *desktop;   /**< Desktop we are on. */
     SPCanvasItem *item;   /**< Our CanvasItem. */
     guint flags;
@@ -62,6 +61,8 @@ struct SPKnot {
 
     gchar *tip;
 
+    gulong _event_handler_id;
+
     //TODO: all the members above should eventualle become private, accessible via setters/getters
     inline void setSize (guint i) {size = i;}
     inline void setShape (guint i) {shape = (SPKnotShapeType) i;}
@@ -114,7 +115,6 @@ struct SPKnot {
 /// The SPKnot vtable.
 struct SPKnotClass {
     GObjectClass parent_class;
-
     gint (* event) (SPKnot *knot, GdkEvent *event);
 
     /*