After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669239 - Remove override of map/unmap
Remove override of map/unmap
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-02 12:23 UTC by Emmanuele Bassi (:ebassi)
Modified: 2012-02-08 19:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove override of map/unmap (5.01 KB, patch)
2012-02-02 12:23 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2012-02-02 12:23:30 UTC
Clutter does not require explicit map/unmap implementations since Clutter 1.8 (the requirement was relaxed by the commit 186d5698ceb32e3b99d52390e29c5609fa3a8ae2, in October 2010).

With the recent changes in Clutter, the unmap() will be called after to the dispose()/destroy() implementation, so the children mapped and unmapped unconditionally will have gone away by the time unmap() is reached, and generate a (harmless, but annoying) critical warning.

Instead of guarding every call to clutter_actor_map() and clutter_actor_unmap(), we can simply get rid of those calls and let Clutter do its own thing.
Comment 1 Emmanuele Bassi (:ebassi) 2012-02-02 12:23:33 UTC
Created attachment 206621 [details] [review]
Remove override of map/unmap

Clutter, since version 1.8, does The Right Thing™ inside the default
implementation of ClutterActor::map and ClutterActor::unmap, even for
non-container actors: it will iterate over the list of children and
map, or unmap, each one of them, respectively.

This means that the requirement to override map and unmap for composite
actors to map and unmap the internal children has been dropped.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-02-02 18:30:34 UTC
Review of attachment 206621 [details] [review]:

Yes.
Comment 3 Emmanuele Bassi (:ebassi) 2012-02-06 23:37:32 UTC
Comment on attachment 206621 [details] [review]
Remove override of map/unmap

pushed to master.
Comment 4 Emmanuele Bassi (:ebassi) 2012-02-08 19:38:02 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 5 drago01 2012-02-08 19:56:00 UTC
(In reply to comment #4)
> This problem has been fixed in the development version. The fix will be
> available in the next major software release. Thank you for your bug report.

Adding fancy comment != close bug ;)