diff -Nru glogic-2.6/debian/changelog glogic-2.6/debian/changelog --- glogic-2.6/debian/changelog 2021-11-16 14:58:06.000000000 +0100 +++ glogic-2.6/debian/changelog 2024-08-24 16:24:44.000000000 +0200 @@ -1,3 +1,10 @@ +glogic (2.6-6+deb12u1) bookworm; urgency=medium + + * Add patch to require Gtk 3.0 and PangoCairo 1.0 + (Closes: #1058575) + + -- Andreas Rönnquist Sat, 24 Aug 2024 16:24:44 +0200 + glogic (2.6-6) unstable; urgency=medium * QA upload. diff -Nru glogic-2.6/debian/patches/105-Require-Gtk-3.0-and-PangoCairo-1.0.patch glogic-2.6/debian/patches/105-Require-Gtk-3.0-and-PangoCairo-1.0.patch --- glogic-2.6/debian/patches/105-Require-Gtk-3.0-and-PangoCairo-1.0.patch 1970-01-01 01:00:00.000000000 +0100 +++ glogic-2.6/debian/patches/105-Require-Gtk-3.0-and-PangoCairo-1.0.patch 2024-08-24 16:24:44.000000000 +0200 @@ -0,0 +1,38 @@ +From: =?utf-8?q?Andreas_R=C3=B6nnquist?= +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 + diff -Nru glogic-2.6/debian/patches/series glogic-2.6/debian/patches/series --- glogic-2.6/debian/patches/series 2021-11-16 14:58:06.000000000 +0100 +++ glogic-2.6/debian/patches/series 2024-08-24 16:24:44.000000000 +0200 @@ -1,3 +1,4 @@ +105-Require-Gtk-3.0-and-PangoCairo-1.0.patch 104_remove-duplicated-autoconf-macro.patch 103_erase-link-to-external-website.patch 102_add-Keywords-field.patch