Beispiel #1
0
 def KGit_hookFunction(self):
     wm = components.classes["@mozilla.org/appshell/window-mediator;1"].getService(components.interfaces.nsIWindowMediator)
     win = wm.getMostRecentWindow("Komodo")
     tree = win.document.getElementById('places-files-tree')
     treebox = tree.boxObject.QueryInterface(components.interfaces.nsITreeBoxObject)
     pview = UnwrapObject(treebox.view)
     if pview._buildCellProperties == self.KGit_buildCellProperties:
       return
     self._buildCellProperties_old = pview._buildCellProperties
     pview._buildCellProperties = self.KGit_buildCellProperties