[clutter/wip/action-handle-event: 2/6] actor: Constify event argument in clutter_actor_event()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/action-handle-event: 2/6] actor: Constify event argument in clutter_actor_event()
- Date: Tue, 26 Jun 2012 16:16:05 +0000 (UTC)
commit f819ed5145ca30aabc991beded8f44a51bc8603b
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 b0c874b..e0cfd23 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 ae95418..326add4 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]