Mercurial > libervia-backend
diff frontends/src/wix/chat.py @ 1093:11e2bb20e896
core, frontends (menus): MENU_ROOM and MENU_SINGLE are now managed
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Jun 2014 00:05:20 +0200 |
parents | 5a6354ff468c |
children | 75025461141f |
line wrap: on
line diff
--- a/frontends/src/wix/chat.py Wed Jun 25 20:54:15 2014 +0200 +++ b/frontends/src/wix/chat.py Thu Jun 26 00:05:20 2014 +0200 @@ -19,6 +19,7 @@ from sat.core.i18n import _ +from sat_frontends.wix.constants import Const as C import wx import os.path import time @@ -173,6 +174,7 @@ actionMenu = wx.Menu() actionMenu.Append(idSEND, _("&SendFile CTRL-s"),_(" Send a file to contact")) menuBar.Append(actionMenu,_("&Action")) + self.host.addMenus(menuBar, C.MENU_SINGLE, {'jid': self.target}) #events wx.EVT_MENU(self, idSEND, self.onSendFile) @@ -185,6 +187,7 @@ actionMenu = wx.Menu() actionMenu.Append(idTAROT, _("Start &Tarot game CTRL-t"),_(" Start a Tarot card game")) #tmp menuBar.Append(actionMenu,_("&Games")) + self.host.addMenus(menuBar, C.MENU_ROOM, {'room_jid': self.target.bare}) #events wx.EVT_MENU(self, idTAROT, self.onStartTarot)