'Changed the page in the Notebook.
It manages which View will be visible in the Menu, and
to which recipient the signal of that View should be
directed.'

def nb_changed_page(self, notebook, page, page_num):

    ch = notebook.get_nth_page(page_num)
    page = notebook.get_tab_label(ch).get_text()
    self.w3af.helpChapters['main'] = self.helpChapter[page_num]
    self.viewSignalRecipient = None
    for (name, menu) in self.menuViews.items():
        if (name == page):
            menu.set_sensitive(self.is_running)
            menu.set_visible(True)
            self.viewSignalRecipient = self.notetabs[name]
        else:
            menu.set_visible(False)
    if (page not in self.menuViews):
        fake = self.menuViews.items()[0][1]
        fake.set_sensitive(False)
        fake.set_visible(True)
    for (widg, where) in self.tabDependant:
        widg((page in where))
