[gnome-control-center/gnome-3-28] user-accounts: Fix hint for wrong enterprise user/password
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-28] user-accounts: Fix hint for wrong enterprise user/password
- Date: Sat, 12 May 2018 04:19:09 +0000 (UTC)
commit ad84a5bdbd57c11ce7bcac3b7dd53a7a0c8812ad
Author: Ondrej Holy <oholy redhat com>
Date: Wed Apr 25 18:57:19 2018 +0200
user-accounts: Fix hint for wrong enterprise user/password
A variable of label widget, used for a hint when wrong enterprise
user/password is used, is not properly initialized and thus criticals
are shown instead of the hint when user/password is wrong. Let's bind
the variable properly.
(cherry picked from commit f4b1fb66a4ccbe99ecd520afeb9fb9997c90a6b4)
panels/user-accounts/data/account-dialog.ui | 4 ++--
panels/user-accounts/um-account-dialog.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/data/account-dialog.ui b/panels/user-accounts/data/account-dialog.ui
index a508ecd30..50dad028e 100644
--- a/panels/user-accounts/data/account-dialog.ui
+++ b/panels/user-accounts/data/account-dialog.ui
@@ -538,7 +538,7 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="enterprise-hint">
+ <object class="GtkLabel" id="enterprise_hint">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="yalign">0</property>
@@ -810,7 +810,7 @@
<widget name="enterprise_domain_hint"/>
<widget name="enterprise_login"/>
<widget name="enterprise_password"/>
- <widget name="enterprise-hint"/>
+ <widget name="enterprise_hint"/>
</widgets>
</object>
<object class="GtkSizeGroup">
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 9ca2c6d9d..15b5b443c 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -1581,6 +1581,7 @@ um_account_dialog_class_init (UmAccountDialogClass *klass)
gtk_widget_class_bind_template_child (widget_class, UmAccountDialog, enterprise_login);
gtk_widget_class_bind_template_child (widget_class, UmAccountDialog, enterprise_password);
gtk_widget_class_bind_template_child (widget_class, UmAccountDialog, enterprise_domain_hint);
+ gtk_widget_class_bind_template_child (widget_class, UmAccountDialog, enterprise_hint);
}
UmAccountDialog *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]