diff --git a/ChangeLog b/ChangeLog index e76796c84..cabefcbcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-05 Brian Matherly + * src/docgen/GtkPrint.py: Fix 0000908: GtkPrint doesn't parse if you don't + have pygtk version 2.10 + 2007-03-05 Brian Matherly * src/plugins/GraphViz.py: Fix 0000942: Relationship graph doesn't show preferred name format diff --git a/src/docgen/GtkPrint.py b/src/docgen/GtkPrint.py index 93ccee188..7a538b210 100644 --- a/src/docgen/GtkPrint.py +++ b/src/docgen/GtkPrint.py @@ -52,6 +52,10 @@ log = logging.getLogger(".GtkDoc") import pygtk import gtk + +if not hasattr(gtk, "PrintOperation"): + raise Errors.UnavailableError(_("Cannot be loaded because PyGtk 2.10 or later is not installed")) + import cairo import pango