diff options
Diffstat (limited to 'system/virt-manager/2-Fix_the_gtksource_version_checking.patch')
-rw-r--r-- | system/virt-manager/2-Fix_the_gtksource_version_checking.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/system/virt-manager/2-Fix_the_gtksource_version_checking.patch b/system/virt-manager/2-Fix_the_gtksource_version_checking.patch new file mode 100644 index 0000000000..5ca2290daf --- /dev/null +++ b/system/virt-manager/2-Fix_the_gtksource_version_checking.patch @@ -0,0 +1,29 @@ +From 267f226134afb9dfef9091e3da5647441aebabbf Mon Sep 17 00:00:00 2001 +From: Cole Robinson <crobinso@redhat.com> +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 e58373ecc..a3d8c87e8 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") |