From 98e2b7c5826605ed0cd72962925c8fe04b4cb324 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 c97263767..555014bb4 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)