Пример #1
0
 def _on_active_tab_changed(self, window, tab):
     """ Handle active-tab changes """
     self._active_tab.originalise()
     self._active_tab = ImitationTab(tab)
Пример #2
0
 def do_activate(self):
     """ Activate the plugin """
     self._active_tab = ImitationTab(self.window.get_active_tab())
     self._tab_change_handler_id = self.window.connect(
         'active-tab-changed', self._on_active_tab_changed)