comparison browser_side/menu.py @ 272:0cb9869b42b6

browser_side: bug fix for RoomAndContactsChooser (do not display the MUCs in the list)
author souliane <souliane@mailoo.org>
date Thu, 21 Nov 2013 13:44:26 +0100
parents 79970bf6af93
children 0eba1c4f9c6f
comparison
equal deleted inserted replaced
271:d868181d0649 272:0cb9869b42b6
308 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False)) 308 dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False))
309 309
310 def onCollectiveRadio(self): 310 def onCollectiveRadio(self):
311 def callback(room_jid, contacts): 311 def callback(room_jid, contacts):
312 self.host.bridge.call('launchRadioCollective', None, contacts, room_jid) 312 self.host.bridge.call('launchRadioCollective', None, contacts, room_jid)
313 dialog.RoomAndContactsChooser(self.host, callback, ok_button="Choose", visible=(False, True)) 313 dialog.RoomAndContactsChooser(self.host, callback, ok_button="Choose", title="Collective Radio", visible=(False, True))
314 314
315 #Game menu 315 #Game menu
316 def onTarotGame(self): 316 def onTarotGame(self):
317 def onPlayersSelected(room_jid, other_players): 317 def onPlayersSelected(room_jid, other_players):
318 self.host.bridge.call('launchTarotGame', None, other_players, room_jid) 318 self.host.bridge.call('launchTarotGame', None, other_players, room_jid)
319 dialog.RoomAndContactsChooser(self.host, onPlayersSelected, 3, title_invite="Please select 3 other players", visible=(False, True)) 319 dialog.RoomAndContactsChooser(self.host, onPlayersSelected, 3, title="Tarot", title_invite="Please select 3 other players", visible=(False, True))
320 320
321 def onXiangqiGame(self): 321 def onXiangqiGame(self):
322 Window.alert("A Xiangqi game is planed, but not available yet") 322 Window.alert("A Xiangqi game is planed, but not available yet")
323 323
324 #Settings menu 324 #Settings menu