diff --git a/gnome-control-center-add-user-button.patch b/gnome-control-center-add-user-button.patch new file mode 100644 index 0000000..6a28ddd --- /dev/null +++ b/gnome-control-center-add-user-button.patch @@ -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); + } diff --git a/gnome-control-center.changes b/gnome-control-center.changes index d0ce5bb..1fad4d9 100644 --- a/gnome-control-center.changes +++ b/gnome-control-center.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Sep 22 03:30:16 UTC 2023 - Xiaoguang Wang + +- 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 diff --git a/gnome-control-center.spec b/gnome-control-center.spec index 7096aed..1fe8866 100644 --- a/gnome-control-center.spec +++ b/gnome-control-center.spec @@ -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