GNOME Bugzilla – Bug 621197
De-duplicate "actor contains actor" code
Last modified: 2010-06-11 14:07:40 UTC
(see also http://bugzilla.openedhand.com/show_bug.cgi?id=2162)
Created attachment 163285 [details] [review] De-duplicate "actor contains actor" code Add _st_actor_contains() in st-private for use within St, and monkey-patch in a Clutter.Actor.contains() for use by javascript, and then replace all the duplicate implementations with one or the other of those.
Review of attachment 163285 [details] [review]: Oh yes! I'm sure you considered adding the method to StWidget instead and decided against it (chrome.js?) ...
(In reply to comment #2) > Oh yes! I'm sure you considered adding the method to StWidget instead and > decided against it (chrome.js?) ... yeah, there are definitely places where we want to be able to test against arbitrary actors, not just StWidgets
(In reply to comment #1) > Created an attachment (id=163285) [details] [review] > De-duplicate "actor contains actor" code > > Add _st_actor_contains() in st-private for use within St, and > monkey-patch in a Clutter.Actor.contains() for use by javascript, and > then replace all the duplicate implementations with one or the other > of those. Is there any reason for the "rush" ... i.e can't we wait for the clutter patch to be reviewed instead of having our own implementation and remove it shortly afterwards? OTOH the code is already written ...
it's not clear that they'd add it to the stable branch anyway
(In reply to comment #5) > it's not clear that they'd add it to the stable branch anyway Also: the code is already in gnome-shell - and removing the duplicates now will make it a tiny bit easier to replace it with the clutter version (should it land).
(In reply to comment #6) > (In reply to comment #5) > > it's not clear that they'd add it to the stable branch anyway > > Also: the code is already in gnome-shell - and removing the duplicates now will > make it a tiny bit easier to replace it with the clutter version (should it > land). Yeah that makes sense. (In reply to comment #5) > it's not clear that they'd add it to the stable branch anyway We should move to 1.3/1.4 soon anyway. But anyway was just curious nothing is actually wrong with this patch.
Attachment 163285 [details] pushed as a4befeb - De-duplicate "actor contains actor" code