comparison src/browser/sat_browser/game_tarot.py @ 782:10a56f6bc5db

browser_side (menu): moved Tarot from Games to Groups
author souliane <souliane@mailoo.org>
date Tue, 01 Dec 2015 12:01:03 +0100
parents 82123705474b
children f8a7a046ff9c
comparison
equal deleted inserted replaced
781:1dfe3ca27749 782:10a56f6bc5db
402 room_jid_s = unicode(room_jid) if room_jid else '' 402 room_jid_s = unicode(room_jid) if room_jid else ''
403 host.bridge.launchTarotGame(other_players, room_jid_s, profile=C.PROF_KEY_NONE, callback=lambda dummy: None, errback=host.showFailureRoomInvalid) 403 host.bridge.launchTarotGame(other_players, room_jid_s, profile=C.PROF_KEY_NONE, callback=lambda dummy: None, errback=host.showFailureRoomInvalid)
404 dialog.RoomAndContactsChooser(host, onPlayersSelected, 3, title="Tarot", title_invite=_(u"Please select 3 other players"), visible=(False, True)) 404 dialog.RoomAndContactsChooser(host, onPlayersSelected, 3, title="Tarot", title_invite=_(u"Please select 3 other players"), visible=(False, True))
405 405
406 def gotMenus(): 406 def gotMenus():
407 host.menus.addMenu(C.MENU_GLOBAL, (D_(u"Games"), D_(u"Tarot")), callback=onTarotGame) 407 host.menus.addMenu(C.MENU_GLOBAL, (D_(u"Groups"), D_(u"Tarot")), callback=onTarotGame)
408 host.addListener('gotMenus', gotMenus) 408 host.addListener('gotMenus', gotMenus)
409 409
410 host_listener.addListener(hostReady) 410 host_listener.addListener(hostReady)