File: peas-demo-add-gi.require_version-for-GTK-3.0.patch

package info (click to toggle)
libpeas 1.36.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,692 kB
  • sloc: ansic: 12,266; python: 206; sh: 80; xml: 44; makefile: 28; javascript: 13
file content (24 lines) | stat: -rw-r--r-- 866 bytes parent folder | download
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