[clutter/wip/master-next: 5/31] actor: Constify event argument in clutter_actor_event()



commit 67cbb56ab8a4e3089fe72bc7591f2dfe410c7ae9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Jun 24 09:57:12 2012 +0100

    actor: Constify event argument in clutter_actor_event()
    
    The Clutter.Actor.event() method is a signal emitter; it does not modify
    the event passed to it.

 clutter/clutter-actor.c |    6 +++---
 clutter/clutter-actor.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 5728983..793952c 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -12516,9 +12516,9 @@ clutter_actor_lower_bottom (ClutterActor *self)
  * Since: 0.6
  */
 gboolean
-clutter_actor_event (ClutterActor *actor,
-                     ClutterEvent *event,
-		     gboolean      capture)
+clutter_actor_event (ClutterActor       *actor,
+                     const ClutterEvent *event,
+		     gboolean            capture)
 {
   gboolean retval = FALSE;
   gint signal_num = -1;
diff --git a/clutter/clutter-actor.h b/clutter/clutter-actor.h
index e98cd55..d2f78d9 100644
--- a/clutter/clutter-actor.h
+++ b/clutter/clutter-actor.h
@@ -533,7 +533,7 @@ gboolean                        clutter_actor_get_reactive
 gboolean                        clutter_actor_has_key_focus                     (ClutterActor               *self);
 void                            clutter_actor_grab_key_focus                    (ClutterActor               *self);
 gboolean                        clutter_actor_event                             (ClutterActor               *actor,
-                                                                                 ClutterEvent               *event,
+                                                                                 const ClutterEvent         *event,
                                                                                  gboolean                    capture);
 gboolean                        clutter_actor_has_pointer                       (ClutterActor               *self);
 



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