Constify the cursor geometry in ::cursor-event
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 15 Dec 2008 18:23:25 +0000 (18:23 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 15 Dec 2008 18:23:25 +0000 (18:23 +0000)
We don't allow changing the cursor geometry inside the ::cursor-event
signal handlers; for starters, it would make binding the signal a
huge mess, and it would also potentially break the whole actor.

clutter/clutter-text.h

index 5598b09..4001181 100644 (file)
@@ -76,10 +76,11 @@ struct _ClutterTextClass
   ClutterActorClass parent_class;
 
   /*< public >*/
-  void (* text_changed) (ClutterText     *self);
-  void (* activate)     (ClutterText     *self);
-  void (* cursor_event) (ClutterText     *self,
-                         ClutterGeometry *geometry);
+  /* signals, not vfuncs */
+  void (* text_changed) (ClutterText           *self);
+  void (* activate)     (ClutterText           *self);
+  void (* cursor_event) (ClutterText           *self,
+                         const ClutterGeometry *geometry);
 
   /*< private >*/
   /* padding for future expansion */