def addDirectory (self, dirname, fullpath, icon, iter=None, glock=True): """ @summary: Add a directory on navigator. @param dirname: Directory name. @param fullpath: Full path of the directory. @param icon: Icon associated with the directory. @param iter: Parent TreeIter. None to add directory as a root TreeIter, @param glock: True to lock gtk-loop. """ newIter = None if (iter != None): newIter = UIUtils.insertIter(self.__model__, iter, (icon, dirname, fullpath), self.__PATH_COLUMN__, self.__directoryNameComparer__, doGObject=glock) else: newIter = UIUtils.addIter(self.__model__, None, (icon, dirname, fullpath), glock) if (newIter != None): self.__prepareDirectory__(fullpath, newIter, glock=glock)