virt-manager/virtman-dont-specify-gtksource-version.patch
Charles Arnold 806560bdca - bsc#1191356 - virt-manager should not depend on gtk4
Modified files:
    virt-manager.spec
    virtman-dont-specify-gtksource-version.patch
    virtman-dont-specify-vte-version.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=548
2021-10-07 20:57:07 +00:00

19 lines
639 B
Diff

Index: virt-manager-3.2.0/virtManager/xmleditor.py
===================================================================
--- virt-manager-3.2.0.orig/virtManager/xmleditor.py
+++ virt-manager-3.2.0/virtManager/xmleditor.py
@@ -7,12 +7,7 @@ import gi
from virtinst import log
# We can use either gtksourceview3 or gtksourceview4
-try:
- gi.require_version("GtkSource", "4")
- log.debug("Using GtkSource 4")
-except ValueError: # pragma: no cover
- gi.require_version("GtkSource", "3.0")
- log.debug("Using GtkSource 3.0")
+gi.require_version("GtkSource", "3.0")
from gi.repository import GtkSource
from .lib import uiutil