Пример #1
0
    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)
Пример #2
0
 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)
Пример #3
0
 def __init__(self, app):
     WebAppView.__init__(self, app)