Added close button to the torrent info dialog

This commit is contained in:
Artem Glebov 2013-03-09 11:44:03 +03:00
parent 50e9e2f286
commit e5472ebd27
2 changed files with 15 additions and 1 deletions

View file

@ -245,6 +245,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

@ -133,5 +133,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>