def title_changed(self, view, frame, title): windowtitle = self.app.window.get_title() if not title.startswith(self.app.appInfo["initial_title"]) and \ not utils.same_title(windowtitle, title): self.app.notification(_("Notice"), title) self.app.tray.set_blinking(True) if title.startswith(self.app.appInfo["initial_title"]): self.app.tray.set_blinking(False) WebAppView.title_changed(self, view, frame, title)
def init_signals(self): WebAppView.init_signals(self) self.connect( "navigation-policy-decision-requested", self.navigation_policy_decision_requested) self.connect("load-finished", self.load_finished)
def __init__(self, app): WebAppView.__init__(self, app)