comparison src/browser/libervia_main.py @ 835:a964ff397484

browser: update favicon counter when a tab change make notified messages visible
author souliane <souliane@mailoo.org>
date Tue, 12 Jan 2016 18:00:12 +0100
parents 2491898b3041
children 09ace5cbcb9b
comparison
equal deleted inserted replaced
834:2491898b3041 835:a964ff397484
213 213
214 def onBeforeTabSelected(self, sender, tab_index): 214 def onBeforeTabSelected(self, sender, tab_index):
215 return True 215 return True
216 216
217 def onTabSelected(self, sender, tab_index): 217 def onTabSelected(self, sender, tab_index):
218 pass 218 for widget in self.tab_panel.getCurrentPanel().widgets:
219 if isinstance(widget, chat.Chat):
220 clist = self.contact_list
221 clist.removeAlerts(widget.current_target, True)
219 222
220 def onEventPreview(self, event): 223 def onEventPreview(self, event):
221 if event.type in ["keydown", "keypress", "keyup"] and event.keyCode == KEY_ESCAPE: 224 if event.type in ["keydown", "keypress", "keyup"] and event.keyCode == KEY_ESCAPE:
222 #needed to prevent request cancellation in Firefox 225 #needed to prevent request cancellation in Firefox
223 event.preventDefault() 226 event.preventDefault()