diff --git a/ChangeLog b/ChangeLog index fd55c6d9c..6d32e1ee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-29 Alex Roitman + * src/plugins/GraphViz.py (GraphVizDialog.__init__): + Use proper response ID; (GraphVizGraphics.__init__): set up self.doc; + (EmptyDoc.init): Add empty method. + 2005-01-29 Eero Tamminen * src/plugins/StatisticsChart.py: - Added support for Don's Pie charts + color styles for it diff --git a/src/plugins/GraphViz.py b/src/plugins/GraphViz.py index a12ec61bb..07727354a 100644 --- a/src/plugins/GraphViz.py +++ b/src/plugins/GraphViz.py @@ -761,7 +761,7 @@ class GraphVizDialog(Report.ReportDialog): name,translated_name) response = self.window.run() - if response == True: + if response == gtk.RESPONSE_OK: try: self.make_report() except (IOError,OSError),msg: @@ -886,6 +886,9 @@ class EmptyDoc: def __init__(self,styles,type,template,orientation,source=None): pass + def init(self): + pass + #------------------------------------------------------------------------ # # @@ -915,6 +918,7 @@ class GraphVizGraphics(Report.Report): self.database = database self.start_person = person self.options_class = options_class + self.doc = options_class.get_document() self.user_output = options_class.get_output() self.junk_output = os.path.expanduser("~/.gramps/junk")