GNOME Bugzilla – Bug 778301
GtkTooltip doesn't clear source ID in all circumstances
Last modified: 2017-06-06 12:19:59 UTC
Created attachment 345130 [details] [review] Potential fix. This is likely only visible from a GC'ed language, but causes quite a lot of warnings there in case the GtkTooltip object is being kept alive for longer than anticipated when the timer in timeout_id runs out. This is already acknowledged and being worked around according to the comment in tooltip_popup_timeout ("This usually doesn't happen..."), but can be easily fixed by removing and zeroing the field more aggressively, see the attached patch. I'm not sure whether the exact place and whether the second call for the GdkDisplay "closed" signal is necessary/correct, I observed no ill effects with this patch applied though.
Review of attachment 345130 [details] [review]: looks fine to me
This was pushed as https://git.gnome.org/browse/gtk+/commit/?id=621d1bb4ec64c0412cda8bd6f335c0e3033c00ef