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 711732 - Fix more issues with the new g_source_remove() warnings
Fix more issues with the new g_source_remove() warnings
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: 2013-11-09 16:13 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2014-01-17 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tweener: Remove the onAnimationStart/onAnimationComplete callbacks (4.53 KB, patch)
2013-11-09 16:13 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
dash: Make sure we clear the timeout ID for the label tooltip (839 bytes, patch)
2013-11-09 16:14 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review
More invalid source fixes (5.30 KB, patch)
2013-11-09 16:25 UTC, Florian Müllner
none Details | Review
dash: Make sure we clear the timeout IDs for the label tooltip (1.19 KB, patch)
2013-11-09 16:37 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
More invalid source fixes (3.98 KB, patch)
2013-11-09 16:47 UTC, Florian Müllner
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-11-09 16:13:56 UTC
See patches. The first one might be too invasive, but deleting code is always nice, so...
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-11-09 16:13:58 UTC
Created attachment 259335 [details] [review]
tweener: Remove the onAnimationStart/onAnimationComplete callbacks

Our gnome-shell tweener integration has had hooks to determine when
the tweens have started and completed... except that they had a bug
in them. When a tween completed, it queued an idle handler to run
the callback in. If no tweens were running when the idle was removing,
it reset the tween state that contained the idle handler ID. It also
returned false, meaning that the source would always get removed.

If the actor had a tween in-flight when the idle was fired, it wouldn't
clean up after itself. While this is also a simple bug fix, remove the
callback so we don't queue unnecessary, unused idles.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-11-09 16:14:02 UTC
Created attachment 259336 [details] [review]
dash: Make sure we clear the timeout ID for the label tooltip
Comment 3 Florian Müllner 2013-11-09 16:25:39 UTC
Created attachment 259337 [details] [review]
More invalid source fixes

I had missed the Later one, so didn't attach to bugzilla yet - after rebasing this patch on top of the other ones, we should be good.
Comment 4 Florian Müllner 2013-11-09 16:26:48 UTC
Review of attachment 259336 [details] [review]:

Missed _resetHoverTimeout
Comment 5 Florian Müllner 2013-11-09 16:30:49 UTC
Review of attachment 259335 [details] [review]:

OK.
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-11-09 16:37:07 UTC
Created attachment 259338 [details] [review]
dash: Make sure we clear the timeout IDs for the label tooltip
Comment 7 Florian Müllner 2013-11-09 16:38:49 UTC
Review of attachment 259338 [details] [review]:

Yup.

(I'll rebase my patch once those are committed)
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-11-09 16:45:05 UTC
Attachment 259335 [details] pushed as 5bc8a08 - tweener: Remove the onAnimationStart/onAnimationComplete callbacks
Attachment 259338 [details] pushed as 3991d27 - dash: Make sure we clear the timeout IDs for the label tooltip
Comment 9 Florian Müllner 2013-11-09 16:47:02 UTC
Created attachment 259339 [details] [review]
More invalid source fixes
Comment 10 Jasper St. Pierre (not reading bugmail) 2013-11-09 16:48:36 UTC
Review of attachment 259339 [details] [review]:

Yep.
Comment 11 Florian Müllner 2013-11-09 16:59:49 UTC
Comment on attachment 259339 [details] [review]
More invalid source fixes

Attachment 259339 [details] pushed as 554d5ae - More invalid source fixes