Mercurial > libervia-backend
diff frontends/src/primitivus/primitivus @ 1103:a096b8579a3c
frontends: signals are managed in a more generic way
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 11 Aug 2014 19:10:24 +0200 |
parents | 11e2bb20e896 |
children | e2e1e27a3680 |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Tue Jul 15 18:28:40 2014 +0200 +++ b/frontends/src/primitivus/primitivus Mon Aug 11 19:10:24 2014 +0200 @@ -391,8 +391,8 @@ self.center_part.widget_list[1] = self.chat_wins[contact] self.menu_roller.addMenu(_('Chat menu'), self.chat_wins[contact].getMenu()) - def newMessage(self, from_jid, to_jid, msg, _type, extra, profile): - QuickApp.newMessage(self, from_jid, to_jid, msg, _type, extra, profile) + def newMessageHandler(self, from_jid, to_jid, msg, _type, extra, profile): + QuickApp.newMessageHandler(self, from_jid, to_jid, msg, _type, extra, profile) if not from_jid in self.contact_list and from_jid.bare != self.profiles[profile]['whoami'].bare: #XXX: needed to show entities which haven't sent any @@ -481,9 +481,7 @@ self.bridge.launchAction(callback_id, data, profile_key, callback=action_cb, errback=action_eb) - def askConfirmation(self, confirmation_id, confirmation_type, data, profile): - if not self.check_profile(profile): - return + def askConfirmationHandler(self, confirmation_id, confirmation_type, data, profile): answer_data={} def dir_selected_cb(path): @@ -513,10 +511,8 @@ pop_up_widget = sat_widgets.ConfirmDialog(data["message"], no_cb=refuse_cb, yes_cb=accept_cb) self.showPopUp(pop_up_widget) - def actionResult(self, type_, id, data, profile): + def actionResultHandler(self, type_, id, data, profile): # FIXME: to be removed - if not self.check_profile(profile): - return if not id in self.current_action_ids: log.debug (_('unknown id, ignoring'))