[gnome-control-center/wip/feborges/new-users-panel: 2/7] user-accounts: Set user options sensitive based on the permissions
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 2/7] user-accounts: Set user options sensitive based on the permissions
- Date: Sat, 10 Dec 2016 22:12:40 +0000 (UTC)
commit 9dd78047a6440c901705f388371b2e34abd0408c
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Dec 5 14:46:35 2016 +0100
user-accounts: Set user options sensitive based on the permissions
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-user-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 3ba372f..671a0c8 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -1338,6 +1338,9 @@ on_permission_changed (GPermission *permission,
gtk_stack_set_visible_child_name (GTK_STACK (d->headerbar_buttons), is_authorized ? PAGE_ADDUSER :
PAGE_LOCK);
+ widget = get_widget (d, "main-user-vbox");
+ gtk_widget_set_sensitive (widget, is_authorized);
+
widget = get_widget (d, "add-user-toolbutton");
gtk_widget_set_sensitive (widget, is_authorized);
if (is_authorized) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]