Exemple #1
0
 def deactivate(self):
     IdleHelper.deactivate(self)
     self._project_ind_ns = []
     self._project_ind = []
     self.scan_queue = None
     self.insert_queue = None
     self.active_project = None
     self.known_projects.clear()
     self.config.deactivate()
     self.config = None
Exemple #2
0
 def deactivate(self):
     IdleHelper.deactivate(self)
     self.uimanager.remove_ui(self.menuitem_default_merge_id)
     self.uimanager.remove_ui(self.merge_id)
     self.uimanager.remove_action_group(self.actiongroup_widget)
     self.uimanager.remove_action_group(self.actiongroup_active)
     
     self.menu_project = None
     self.treeview_open = None
     self.treeview = None
     self.widget = None
     self.app_data = None
Exemple #3
0
 def do_deactivate(self):
     IdleHelper.deactivate(self)
     self._disconnect_all()
     if self.app_data is None:
         return
     
     self.uimanager.remove_ui(self.recent_merge_id)
     self.uimanager.remove_action_group(self.actiongroup_recent)
     self.actiongroup_recent = None
     panel = self.window.get_side_panel()
     panel.remove_item(self.panel_helper.widget)
     self.panel_helper.deactivate()
     self.panel_helper = None
     
     if len(Gedit.App.get_default().get_windows()) <= 1:
         self.app_data.deactivate()
         self.__class__.app_data = None