Fix constructing the auth dialog

Signed-off-by: xuxinyu <xuxinyu@xfusion.com>
This commit is contained in:
xuxinyu 2023-01-07 16:44:02 +08:00
parent 1f953b0e6c
commit c54077ca7c
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From 2766d74a98e44693f5e966d541a6303b966c088b Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Thu, 8 Feb 2018 17:01:01 +0100
Subject: [PATCH 01/54] 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

View File

@ -3,7 +3,7 @@
Name: system-config-printer
Summary: a graphical tool for CUPS administration
Version: 1.5.11
Release: 15
Release: 16
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 <xuxinyu@xfusion.com> - 1.5.11-16
- Fix constructing the auth dialog
* Tue Sep 08 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.5.11-15
- Resolve installation failure