From 766f2c4551a0831f3a6695d6039d55992998091c Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 13 Nov 2007 10:32:51 +0000 Subject: [PATCH] 2007-11-13 Benny Malengier * src/plugins/GraphViz.py: issue #1362, code generation should not show open with ghostview, ..., instead show app with text/plain. svn: r9346 --- ChangeLog | 4 ++++ src/plugins/GraphViz.py | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39aa717ed..68419a924 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-13 Benny Malengier + * src/plugins/GraphViz.py: issue #1362, code generation should not show + open with ghostview, ..., instead show app with text/plain. + 2007-11-12 Gary Burton * src/ScratchPad.py: fixed a crash when building tooltip. Not enough place holders in format string diff --git a/src/plugins/GraphViz.py b/src/plugins/GraphViz.py index 4cf45e3a8..6bce7b41e 100644 --- a/src/plugins/GraphViz.py +++ b/src/plugins/GraphViz.py @@ -355,6 +355,9 @@ GRAMPS - Relationship graph Generated on %s. +More info: +http://www.gramps-project.org/wiki/index.php?title=Howto:_Make_a_relationship_chart + Report content options: include URLs : %s IDs : %s @@ -1014,6 +1017,12 @@ class GraphVizDialog(ReportDialog): def make_report(self): """Create the object that will produce the GraphViz file.""" GraphViz(self.database,self.person,self.options_class) + if self.print_report.get_active (): + try: + app = Mime.get_application("text/plain")[0] + Utils.launch(app,self.options_class.get_output()) + except: + pass #------------------------------------------------------------------------ # @@ -1052,7 +1061,7 @@ class FormatComboBox(gtk.ComboBox): return '.dot' def get_printable(self): - _apptype = _options.formats[self.get_active()][3] + _apptype = "text/plain" print_label = None try: mprog = Mime.get_application(_apptype)