From 267f226134afb9dfef9091e3da5647441aebabbf Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 18 Jun 2019 10:39:15 -0400 Subject: [PATCH] xmleditor: Fix the gtksource version checking Previous commit was incomplete --- virtManager/xmleditor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/virtManager/xmleditor.py b/virtManager/xmleditor.py index e58373ec..a3d8c87e 100644 --- a/virtManager/xmleditor.py +++ b/virtManager/xmleditor.py @@ -4,10 +4,12 @@ # pylint: disable=wrong-import-order,ungrouped-imports import gi +from virtinst import log + # We can use either gtksourceview3 or gtksourceview4 try: - gi.require_version("GtkSource", "4.0") - log.debug("Using GtkSource 4.0") + gi.require_version("GtkSource", "4") + log.debug("Using GtkSource 4") except ValueError: gi.require_version("GtkSource", "3.0") log.debug("Using GtkSource 3.0")