[Reportbug-commits] [reportbug] 07/09: ui/gtk2_ui: fix incomplete fallback to text ui
Sandro Tosi
morph at moszumanska.debian.org
Sun Feb 12 17:13:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit fc7b8d149440b3f54aad23af662ad1ae197a1a5b
Author: Nis Martensen <nis.martensen at web.de>
Date: Mon Jan 30 23:52:20 2017 +0100
ui/gtk2_ui: fix incomplete fallback to text ui
This fixes crashes when the python3-gi-cairo and gir1.2-vte-2.91
packages are not installed, so that the fallback can work in these
cases.
---
reportbug/ui/gtk2_ui.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 31d12c9..60b96da 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -46,6 +46,8 @@ try:
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
+
+ gi.require_foreign('cairo')
except ImportError:
raise UINotImportable('Please install the python3-gi and gir1.2-gtk-3.0 packages to use this interface.')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list