Dominique Leuenberger
495efa69aa
- Add gnome-control-center-add-user-button.patch: Show add user button when user is a normal user (bsc#1215556 glgo#GNOME/Settings!1927). OBS-URL: https://build.opensuse.org/request/show/1112918 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=519
14 lines
685 B
Diff
14 lines
685 B
Diff
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);
|
|
}
|