Ana Guerrero 2023-09-26 20:00:23 +00:00 committed by Git OBS Bridge
commit 20a5219bdd
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index 3fdfe961e..fa3af01f8 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -830,7 +830,7 @@ show_user (ActUser *user, CcUserPanel *self)
gtk_widget_set_visible (GTK_WIDGET (self->back_button), !show);
show_or_hide_back_button(self);
gtk_widget_set_visible (GTK_WIDGET (self->other_users), other_user_show);
- gtk_widget_set_visible (GTK_WIDGET (self->add_user_button), show && is_admin);
+ gtk_widget_set_sensitive (GTK_WIDGET (self->add_user_button), is_admin);
on_permission_changed (self);
}

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 22 03:30:16 UTC 2023 - Xiaoguang Wang <xiaoguang.wang@suse.com>
- Add gnome-control-center-add-user-button.patch:
Show add user button when user is a normal user
(bsc#1215556 glgo#GNOME/Settings!1927).
-------------------------------------------------------------------
Fri Sep 15 10:22:39 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -37,6 +37,8 @@ Source99: %{name}-rpmlintrc
# PATCH-NEEDS-REBASE gnome-control-center-disable-error-message-for-NM.patch bsc#989801 sckang@suse.com -- network: Improve the check for whether NM or wicked is running WAS:PATCH-FIX-OPENSUSE
Patch1: gnome-control-center-disable-error-message-for-NM.patch
# PATCH-FIX-UPSTREAM gnome-control-center-add-user-button.patch bsc#1215556 glgo#GNOME/Settings!1927 xwang@suse.com -- Show add user button
Patch2: gnome-control-center-add-user-button.patch
### patches for Leap >= 15 plus SLE >= 15, but not TW
# PATCH-FEATURE-SLE gnome-control-center-info-never-use-gnome-software.patch bsc#999336 fezhang@suse.com -- info: Never search for gnome-software as an option when checking for updates on SLE and Leap 42.2, because we use gpk-update-viewer.
@ -182,6 +184,7 @@ GNOME control center.
%prep
%setup -q
#patch1 -p1
%patch2 -p1
# patches for Leap >= 15 plus SLE >= 15, but not TW
%if 0%{?sle_version} >= 150000