From 08021424348bd65959938e6a75e718a6aa349cf8 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 19 Oct 2001 15:07:56 +0000 Subject: [PATCH] Fixed missing RevisionComment class svn: r497 --- src/VersionControl.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/VersionControl.py b/src/VersionControl.py index 4d2add3fe..c23886f11 100644 --- a/src/VersionControl.py +++ b/src/VersionControl.py @@ -41,6 +41,24 @@ _date_re = re.compile("date:\s+([^;]+);") _sep = '-' * 10 _end = "=" * 10 +class RevisionComment: + + def __init__(self,filename,save_file): + self.filename = filename + self.save = save_file + self.top = libglade.GladeXML(const.gladeFile, "revcom") + self.top.signal_autoconnect({ + "on_savecomment_clicked" : self.on_savecomment_clicked, + }) + self.text = self.top.get_widget("text") + self.win = self.top.get_widget("revcom") + self.win.show() + + def on_savecomment_clicked(self,obj): + comment = self.text.get_text() + utils.destroy_passed_object(self.win) + self.save(self.filename,comment) + class RevisionSelect: