--- a/UI/BrowserModel.py Sat Nov 11 18:47:09 2017 +0100 +++ b/UI/BrowserModel.py Sun Nov 12 19:42:02 2017 +0100 @@ -1135,6 +1135,8 @@ self._populated = False self._lazyPopulation = True self._moduleName = os.path.basename(finfo) + elif self.isProtobufFile(): + pixName = "protobuf.png" elif self.isSvgFile(): pixName = "fileSvg.png" elif self.isPixmapFile(): @@ -1285,6 +1287,15 @@ """ return self.fileext == '.idl' + def isProtobufFile(self): + """ + Public method to check, if this file is a Google Protocol Buffer file. + + @return flag indicating a protobuf file + @rtype bool + """ + return self.fileext == ".proto" + def isJavaScriptFile(self): """ Public method to check, if this file is a JavaScript file.