xbmc/xbmc — pull request #1608 by pieh (2012-10-12 17:13:34+00:00)
Title: CGUIWindow::Initialize fixes/changes

First commit fixes context menu dialogs with conditional includes not showing context buttons (as Initialize didn't realize that include conditions are changed and report window as ready, when it's not and it will be loaded later when we show window - that is after we setup context buttons) - Here's forum topic about it http://forum.xbmc.org/showthread.php?tid=142506&pid=1211421#pid1211421

Second commit makes sure we return proper value if called not from app thread.