summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-02-18 17:19:04 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-02-18 19:41:41 +0000
commitbc548dc86271d38918d310c26c9c59de76218d16 (patch)
tree3f3362968005016c12508a523948c199f027de18 /clutter/clutter-stage-private.h
parent7500b77b2bf8e23e885af6884adc006a4abf5c17 (diff)
downloadclutter-bc548dc86271d38918d310c26c9c59de76218d16.tar.gz
Store the motion event deliver flag in ClutterStage
Once upon a time, the land of Clutter had a stage singleton. It was created automatically at initialization time and stayed around even after the main loop was terminated. The singleton was content in being all there was. There also was a global API to handle the configuration of the stage singleton that would affect the behaviour on other classes, signals and properties. Then, an evil wizard came along and locked the stage singleton in his black tower, and twisted it until it was possible to create new stages. These new stages were pesky, and didn't have the same semantics of the singleton: they didn't stay around when closed, or terminate the main loop on delete events. The evil wizard also started moving all the stage-related API from the global context into class-specific methods. Finally, the evil wizard cast a spell, and the stage singleton was demoted to creation on demand - and until somebody called the clutter_stage_get_default() function, the singleton remained in a limbo of NULL pointers and undefined memory areas. There was a last bit - literally - of information still held by the global API; a tiny, little flag that disabled per-actor motion events. The evil wizard added private accessors for it, and stored it inside the stage private structure, in preparation for a deprecation that would come in a future development cycle. The evil wizard looked down upon the land of Clutter from the height of his black tower; the lay of the land had been reshaped into a crucible of potential, and the last dregs of the original force of creation were either molted into new, useful shapes, or blasted away by the sheer fury of his will. All was good.
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index f61fc9d32..3217a822f 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -90,6 +90,10 @@ void _clutter_stage_remove_device (ClutterStage *stage,
gboolean _clutter_stage_has_device (ClutterStage *stage,
ClutterInputDevice *device);
+void _clutter_stage_set_motion_events_enabled (ClutterStage *stage,
+ gboolean enabled);
+gboolean _clutter_stage_get_motion_events_enabled (ClutterStage *stage);
+
G_END_DECLS
#endif /* __CLUTTER_STAGE_PRIVATE_H__ */