GNOME Bugzilla – Bug 689029
St: fix computing the theme node
Last modified: 2012-11-28 12:17:32 UTC
I'm not sure where this code differs from the previous one, but it fixes what I was seeing (StThemeNode with truncated hierarchies, causing wrong sizes for application icons in the overview and weird resizing issues with the dash)
Created attachment 229813 [details] [review] St: fix computing the theme node st_widget_get_theme_node() was not getting the right parent node to use for its own, and this caused layout issues in the overview.
Review of attachment 229813 [details] [review]: Huh. How long as this been broken? Most quite obviously correct.
Review of attachment 229813 [details] [review]: Wait, nevermind, how is this different?
Review of attachment 229813 [details] [review]: Yeah, I think the existing code is already correct. We have one loop that gets the stage and the parent node for efficiency's sake.
(In reply to comment #3) > Review of attachment 229813 [details] [review]: > > Wait, nevermind, how is this different? Well, the theory is that this is perfectly equivalent to the previous code. In practice though, this patch solved the issue I was seeing...
That can't possibly be right. If it is, it's indicative of a lower-level bug. Figure out why.
Created attachment 229952 [details] [review] StWidget: don't dispose the theme node when destroyed Theme nodes are interned and shared with other widgets, so they cannot be disposed, otherwise we blow useful resources, and in particular we break the parent-child chain. This one is better I guess.
*** Bug 688801 has been marked as a duplicate of this bug. ***
Review of attachment 229952 [details] [review]: Nice catch!
Attachment 229952 [details] pushed as 14fd0eb - StWidget: don't dispose the theme node when destroyed
*** Bug 688640 has been marked as a duplicate of this bug. ***