From c93f2dd433324157d44c989357bf3ca94c21d52c Mon Sep 17 00:00:00 2001 From: bertcarnell Date: Sat, 23 Dec 2017 08:07:03 -0500 Subject: [PATCH] Added a requirement for pango and pangocairo versions Eliminates a warning that was present when calling a report from the command line. Fixes #10333. --- gramps/plugins/docgen/cairodoc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/plugins/docgen/cairodoc.py b/gramps/plugins/docgen/cairodoc.py index dcd6e4772..4185d73a3 100644 --- a/gramps/plugins/docgen/cairodoc.py +++ b/gramps/plugins/docgen/cairodoc.py @@ -35,6 +35,9 @@ import logging # GTK modules # #------------------------------------------------------------------------- +import gi +gi.require_version('Pango', '1.0') +gi.require_version('PangoCairo', '1.0') from gi.repository import Pango, PangoCairo import cairo