diff --git a/src/knot.h b/src/knot.h
index 795eeb8e30064f2d860dc2b5810efad69a9ec146..ceeca0169b28294f82c26c593035907083d55e9e 100644 (file)
--- a/src/knot.h
+++ b/src/knot.h
* 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;
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;}
/// The SPKnot vtable.
struct SPKnotClass {
GObjectClass parent_class;
-
gint (* event) (SPKnot *knot, GdkEvent *event);
/*