File Libxfce4ui.patch of Package xfce4-panel-profiles
diff -rub a/xfce4-panel-profiles/xfce4-panel-profiles.py b/xfce4-panel-profiles/xfce4-panel-profiles.py
--- a/xfce4-panel-profiles/xfce4-panel-profiles.py 2020-12-29 11:32:26.000000000 +0800
+++ b/xfce4-panel-profiles/xfce4-panel-profiles.py 2020-12-31 13:55:15.404157767 +0800
@@ -32,16 +32,10 @@
import gi
gi.require_version('Gtk', '3.0')
-# Try to import the new Libxfce4ui gir name (since 4.15.7)
-# if it does not exists, try the old libxfce4ui
-try:
- gi.require_version('Libxfce4ui', '2.0')
- from gi.repository import Libxfce4ui as libxfce4ui
-except ValueError:
- gi.require_version('libxfce4ui', '2.0')
- from gi.repository import libxfce4ui
+gi.require_version('Libxfce4ui', '2.0')
from gi.repository import Gtk, GLib, Gio
+from gi.repository import Libxfce4ui as libxfce4ui
from panelconfig import PanelConfig