File: 105-Require-Gtk-3.0-and-PangoCairo-1.0.patch

package info (click to toggle)
glogic 2.6-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,728 kB
  • sloc: python: 5,335; sh: 697; makefile: 199; xml: 18
file content (38 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
Date: Fri, 23 Aug 2024 21:01:24 +0200
Subject: Require Gtk 3.0 and PangoCairo 1.0

---
 glogic/MainFrame.py | 5 ++++-
 glogic/Utils.py     | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/glogic/MainFrame.py b/glogic/MainFrame.py
index da9e536..d80b666 100644
--- a/glogic/MainFrame.py
+++ b/glogic/MainFrame.py
@@ -1,6 +1,9 @@
 # -*- coding: utf-8; indent-tabs-mode: t; tab-width: 4 -*-
 
-import copy, os, sys, webbrowser
+import copy, os, sys, webbrowser, gi
+
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import Gtk, Gdk, GdkPixbuf
 from glogic import config, const
 from glogic.Exporter import save_schematics_as_image
diff --git a/glogic/Utils.py b/glogic/Utils.py
index 3e27bab..e930353 100644
--- a/glogic/Utils.py
+++ b/glogic/Utils.py
@@ -1,5 +1,9 @@
 # -*- coding: utf-8; indent-tabs-mode: t; tab-width: 4 -*-
 
+import gi
+
+gi.require_version('PangoCairo', '1.0')
+
 from gi.repository import Pango, PangoCairo
 from glogic import const