--- a/plugins/c_ext/CFileEditor.py Mon Jun 23 17:52:21 2008 +0200
+++ b/plugins/c_ext/CFileEditor.py Mon Jun 23 18:21:27 2008 +0200
@@ -828,7 +828,7 @@
"Publish"]
[ID_CFILEEDITOR, ID_CFILEEDITORMAINSPLITTER,
- ID_CFILEEDITORCFILETREE, CFILEEDITORPARTSOPENED,
+ ID_CFILEEDITORCFILETREE, ID_CFILEEDITORPARTSOPENED,
] = [wx.NewId() for _init_ctrls in range(4)]
class CFileEditor(base_class):
@@ -910,9 +910,9 @@
0), size=wx.Size(0, 0), style=0)
if wx.VERSION >= (2, 6, 0):
self.PartsOpened.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED,
- self.OnPartSelectedChanged, id=CFILEEDITORPARTSOPENED)
- else:
- wx.EVT_NOTEBOOK_PAGE_CHANGED(self.PartsOpened, CFILEEDITORPARTSOPENED,
+ self.OnPartSelectedChanged, id=ID_CFILEEDITORPARTSOPENED)
+ else:
+ wx.EVT_NOTEBOOK_PAGE_CHANGED(self.PartsOpened, ID_CFILEEDITORPARTSOPENED,
self.OnPartSelectedChanged)
self.MainSplitter.SplitVertically(self.ProjectTree, self.PartsOpened, 200)