Merge pull request #12 from aglebov/close-button-details

Added close button to the torrent info dialog
This commit is contained in:
Correl Roush 2013-04-11 18:35:30 -07:00
commit 6b8374696d
2 changed files with 15 additions and 1 deletions

View file

@ -258,6 +258,7 @@ class TorrentInfoGUI(xbmcgui.WindowXMLDialog):
self.close()
pass
def onClick(self, controlID):
pass
if controlID == 111:
self.close()
def onFocus(self, controlID):
pass

View file

@ -140,5 +140,18 @@
</control>
</focusedlayout>
</control>
<control type="button" id="111">
<description>Close Window button</description>
<posx>850</posx>
<posy>0</posy>
<width>64</width>
<height>32</height>
<label>-</label>
<font>-</font>
<onclick>PreviousMenu</onclick>
<texturefocus>DialogCloseButton-focus.png</texturefocus>
<texturenofocus>DialogCloseButton.png</texturenofocus>
<visible>system.getbool(input.enablemouse)</visible>
</control>
</controls>
</window>