Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1407:77f07ea90420
plugin XEP-0045, quick_frontend, primitivus: replace C.DEFAULT_MUC by bridge method getDefaultMUC (value is defined in plugin XEP-0045 and can be overriden with the config file)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 09 Apr 2015 11:27:13 +0200 |
parents | d3e02159f26c |
children | 3265a2639182 |
comparison
equal
deleted
inserted
replaced
1406:d3e02159f26c | 1407:77f07ea90420 |
---|---|
736 QuickApp.onExit(self) | 736 QuickApp.onExit(self) |
737 raise urwid.ExitMainLoop() | 737 raise urwid.ExitMainLoop() |
738 | 738 |
739 def onJoinRoomRequest(self, menu): | 739 def onJoinRoomRequest(self, menu): |
740 """User wants to join a MUC room""" | 740 """User wants to join a MUC room""" |
741 pop_up_widget = sat_widgets.InputDialog(_("Entering a MUC room"), _("Please enter MUC's JID"), default_txt=C.DEFAULT_MUC, cancel_cb=self.removePopUp, ok_cb=self.onJoinRoom) | 741 pop_up_widget = sat_widgets.InputDialog(_("Entering a MUC room"), _("Please enter MUC's JID"), default_txt=self.bridge.getDefaultMUC(), cancel_cb=self.removePopUp, ok_cb=self.onJoinRoom) |
742 self.showPopUp(pop_up_widget) | 742 self.showPopUp(pop_up_widget) |
743 | 743 |
744 def onAboutRequest(self, menu): | 744 def onAboutRequest(self, menu): |
745 self.showPopUp(sat_widgets.Alert(_("About"), C.APP_NAME + " v" + self.bridge.getVersion(), ok_cb=self.removePopUp)) | 745 self.showPopUp(sat_widgets.Alert(_("About"), C.APP_NAME + " v" + self.bridge.getVersion(), ok_cb=self.removePopUp)) |
746 | 746 |