0000908: GtkPrint doesn't parse if you don't have pygtk version 2.10
svn: r8381
This commit is contained in:
parent
004df1cef8
commit
8389f6f6c9
@ -1,3 +1,7 @@
|
|||||||
|
2007-04-12 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/docgen/GtkPrint.py: 0000908: GtkPrint doesn't parse if you don't have
|
||||||
|
pygtk version 2.10
|
||||||
|
|
||||||
2007-04-12 Brian Matherly <brian@gramps-project.org>
|
2007-04-12 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/GrampsDb/_ReadXML.py: 0001011: XML import loses media objects when
|
* src/GrampsDb/_ReadXML.py: 0001011: XML import loses media objects when
|
||||||
media object has no title
|
media object has no title
|
||||||
|
@ -52,6 +52,10 @@ log = logging.getLogger(".GtkDoc")
|
|||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
import gtk
|
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 cairo
|
||||||
import pango
|
import pango
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user