From e3a3a6a6549bb02bbb5016ebf732fe73075fc5aa 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 --- gramps/src/VersionControl.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gramps/src/VersionControl.py b/gramps/src/VersionControl.py index 4d2add3fe..c23886f11 100644 --- a/gramps/src/VersionControl.py +++ b/gramps/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: