From 6a202007f432b64e5e5e16473b25a12ab0ae038f Mon Sep 17 00:00:00 2001 From: xuxinyu Date: Sat, 7 Jan 2023 16:22:28 +0800 Subject: [PATCH] Fix constructing the auth dialog Signed-off-by: xuxinyu --- Fix-constructing-the-auth-dialog.patch | 31 ++++++++++++++++++++++++++ system-config-printer.spec | 7 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Fix-constructing-the-auth-dialog.patch diff --git a/Fix-constructing-the-auth-dialog.patch b/Fix-constructing-the-auth-dialog.patch new file mode 100644 index 0000000..ccbda95 --- /dev/null +++ b/Fix-constructing-the-auth-dialog.patch @@ -0,0 +1,31 @@ +From 2766d74a98e44693f5e966d541a6303b966c088b Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Thu, 8 Feb 2018 17:01:01 +0100 +Subject: [PATCH] Fix constructing the auth dialog + +47973c80 (Remove deprecated Gtk objects) broke the auth dialog. + +Fixes https://bugs.archlinux.org/task/57364. +--- + authconn.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/authconn.py b/authconn.py +index 2a645dcc..0f3021cb 100644 +--- a/authconn.py ++++ b/authconn.py +@@ -78,11 +78,9 @@ class AuthDialog(Gtk.Dialog): + field = auth_info_required[i] + label = Gtk.Label (label=_(self.AUTH_FIELD.get (field, field))) + label.set_alignment (0, 0.5) +- grid.attach (label, 0, 1, i, i + 1) + grid.attach (label, 0, i, 1, 1) + entry = Gtk.Entry () + entry.set_visibility (field != 'password') +- grid.attach (entry, 1, 2, i, i + 1, 0, 0) + grid.attach (entry, 1, i, 1, 1) + self.field_entry.append (entry) + +-- +2.25.1 + diff --git a/system-config-printer.spec b/system-config-printer.spec index f68b23d..7955f94 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -3,7 +3,7 @@ Name: system-config-printer Summary: a graphical tool for CUPS administration Version: 1.5.11 -Release: 17 +Release: 18 License: GPLv2+ URL: https://github.com/zdohnal/system-config-printer Source0: https://github.com/zdohnal/system-config-printer/archive/%{version}.tar.gz @@ -21,6 +21,8 @@ Obsoletes: %{name}-udev = %{version}-%{release} hal-cups-utils < 0.6.20 Provides: %{name}-libs = %{version}-%{release} %{name}-applet = %{version}-%{release} Provides: %{name}-udev = %{version}-%{release} hal-cups-utils = 0.6.20 +Patch1: Fix-constructing-the-auth-dialog.patch + %description %{name} is a graphical tool for CUPS administration. It uses IPP to configure a CUPS server. @@ -81,6 +83,9 @@ rm -rf /var/cache/foomatic/foomatic.pickle exit 0 %changelog +* Sat Jan 07 2022 xuxinyu - 1.5.11-18 +- Fix constructing the auth dialog + * Thu Jul 21 2022 yaoxin - 1.5.11-17 - Remove unneeded dependdencies python3-devel -- Gitee