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 618248 - Network map source shouldn't parent an actor on the stage
Network map source shouldn't parent an actor on the stage
Status: RESOLVED FIXED
Product: libchamplain
Classification: Core
Component: map-sources
0.4.x
Other Linux
: Normal normal
: 0.4
Assigned To: libchamplain-maint
libchamplain-maint
Depends on:
Blocks:
 
 
Reported: 2010-05-10 10:45 UTC by Rob Bradford
Modified: 2010-05-23 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix (2.33 KB, patch)
2010-05-10 10:46 UTC, Rob Bradford
none Details | Review
Better patch (2.36 KB, patch)
2010-05-10 10:56 UTC, Rob Bradford
none Details | Review
Patch for master (3.15 KB, patch)
2010-05-12 13:21 UTC, Rob Bradford
none Details | Review

Description Rob Bradford 2010-05-10 10:45:43 UTC
This leads to a nasty visual bug where we're using it. Attached is a patch that improves the way the error tile works so that it doesn't need an actor to clone and instead every instance shares the same texture handle directly.
Comment 1 Rob Bradford 2010-05-10 10:46:30 UTC
Created attachment 160707 [details] [review]
Patch to fix
Comment 2 Rob Bradford 2010-05-10 10:56:43 UTC
Created attachment 160708 [details] [review]
Better patch

Neil pointed out that clutter_actor_destroy just does an unparent. We don't parent the actor so instead we should sink the floating reference and then drop it.
Comment 3 Jiri Techet 2010-05-11 22:26:24 UTC
Hi Rob, thanks for looking at it. Could you please make your patch on top of the current mainline HEAD? Your patch seems to be against a very old 0.5.x version and there have been many changes meanwhile. You want to look at champlain-error-tile-source.c.

When I implemented the new tile-loading architecture I just copied the code (without liking it much) and thought about making something nicer later on. I've fixed the visual bug by hiding the error actor but this is clearly just a workaround, so thanks for looking into the correct solution.
Comment 4 Rob Bradford 2010-05-12 13:03:26 UTC
Well I did it for libchamplain-0.4 since that's the latest stable branch and that's what we're shipping.

I'll rebase that patch for master though.
Comment 5 Rob Bradford 2010-05-12 13:21:46 UTC
Created attachment 160899 [details] [review]
Patch for master

Here is a version for master.
Comment 6 Jiri Techet 2010-05-14 20:16:25 UTC
Thanks! I thought that this error tile loading was in 0.5 only that's why I asked for a version for master. I've already applied it to master.

There are several issues that should be fixed in the 0.4 branch so after releasing 0.6 (in about one week) I would like to make one more 0.4.x release including your patch.
Comment 7 Jiri Techet 2010-05-23 17:35:10 UTC
Applied for 0.4.