diff -r 7b421e080636 -r 413946c04c87 c_ext/c_ext.py --- a/c_ext/c_ext.py Mon May 21 02:49:53 2012 +0200 +++ b/c_ext/c_ext.py Mon May 21 10:04:27 2012 +0200 @@ -4,6 +4,7 @@ from xmlclass import * +from util import opjimg from CFileEditor import CFileEditor from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT @@ -43,6 +44,9 @@ self.CreateCFileBuffer(False) self.OnCTNSave() + def GetIconPath(self): + return opjimg("Cfile") + def CFileName(self): return os.path.join(self.CTNPath(), "cfile.xml") @@ -138,13 +142,6 @@ return self.CFile.publishFunction.gettext() return "" - ConfNodeMethods = [ - {"bitmap" : "EditCfile", - "name" : _("Edit C File"), - "tooltip" : _("Edit C File"), - "method" : "_OpenView"}, - ] - def CTNTestModified(self): return self.ChangesToSave or not self.CFileIsSaved()