From 16a038d2be5e6a3a192438e80a21de80c5e71338 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sun, 25 May 2014 14:14:07 +0100 Subject: [PATCH] Add check for PangoCairo typelib at startup --- gramps/gui/grampsgui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/gui/grampsgui.py b/gramps/gui/grampsgui.py index ee9c00879..cadf436da 100644 --- a/gramps/gui/grampsgui.py +++ b/gramps/gui/grampsgui.py @@ -83,13 +83,14 @@ try: gi.require_version('Gtk', '3.0') #It is important to import Pango before Gtk, or some things start to go #wrong in GTK3 ! - from gi.repository import Pango + from gi.repository import Pango, PangoCairo from gi.repository import Gtk, Gdk except (ImportError, ValueError): - print((_("Gdk, Gtk or Pango typelib not installed.\n" + print((_("Gdk, Gtk, Pango or PangoCairo typelib not installed.\n" "Install Gnome Introspection, and " "pygobject version 3.3.2 or later.\n" - "Install then instrospection data for Gdk, Gtk and Pango\n\n" + "Install then instrospection data for Gdk, Gtk, Pango and " + "PangoCairo\n\n" "Gramps will terminate now."))) sys.exit(0)