GNOME Bugzilla – Bug 720985
preview: Simplify the PreviewNavButtons show/hide code
Last modified: 2013-12-24 11:57:02 UTC
We could just call _updateVisibility instead of fading it in and out ourself. In fact, it would be more correct to do so because otherwise show will always fade in both widgets -- which is wrong. The reason it works correctly now is that show is called before setModel. So the call to _fadeInButton from show aborts because this._model is null. This is due to the particular order in which _onLoadFinished is called in PreviewView and Embed.
Created attachment 264806 [details] [review] preview: Simplify the PreviewNavButtons show/hide code
Review of attachment 264806 [details] [review]: Looks good to me, thanks.
Comment on attachment 264806 [details] [review] preview: Simplify the PreviewNavButtons show/hide code Thanks for the review.