1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Christian Hergert <chergert@redhat.com>
Date: Fri, 23 May 2025 16:37:03 -0700
Subject: peas-demo: add gi.require_version() for GTK 3.0
Origin: upstream, 1.38, commit:53657c06fe31871bd3d050c6c5668611f928f8e3
---
peas-demo/plugins/pythonhello/pythonhello.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/peas-demo/plugins/pythonhello/pythonhello.py b/peas-demo/plugins/pythonhello/pythonhello.py
index bf832b3..06f8728 100644
--- a/peas-demo/plugins/pythonhello/pythonhello.py
+++ b/peas-demo/plugins/pythonhello/pythonhello.py
@@ -19,6 +19,10 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+import gi
+
+gi.require_version('Gtk', '3.0')
+
from gi.repository import GObject
from gi.repository import Peas
from gi.repository import PeasGtk
|