[gnome-control-center] user-accounts: prefill domain entry
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: prefill domain entry
- Date: Sat, 9 Aug 2014 12:33:40 +0000 (UTC)
commit e4efd5eafd3659d36b5a8ac818e8f2ada1bba768
Author: Ondrej Holy <oholy redhat com>
Date: Fri Nov 8 13:40:17 2013 +0100
user-accounts: prefill domain entry
If we already have any configured realm, prefill one.
https://bugzilla.gnome.org/show_bug.cgi?id=711675
panels/user-accounts/um-account-dialog.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 4174967..7eee23c 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -102,6 +102,7 @@ struct _UmAccountDialog {
GtkWidget *enterprise_hint;
GtkWidget *enterprise_domain_hint;
gint enterprise_domain_timeout_id;
+ gboolean enterprise_domain_chosen;
/* Join credential dialog */
GtkDialog *join_dialog;
@@ -672,6 +673,11 @@ enterprise_add_realm (UmAccountDialog *self,
1, realm,
-1);
+ /* Prefill domain entry by the existing one */
+ if (!self->enterprise_domain_chosen && um_realm_is_configured (realm)) {
+ gtk_entry_set_text (self->enterprise_domain_entry, realm_name);
+ }
+
g_debug ("added realm to drop down: %s %s", realm_name,
g_dbus_object_get_object_path (G_DBUS_OBJECT (realm)));
@@ -1264,6 +1270,7 @@ on_domain_changed (GtkComboBox *widget,
self->enterprise_domain_timeout_id = g_timeout_add (PASSWORD_CHECK_TIMEOUT, (GSourceFunc)
enterprise_domain_timeout, self);
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, FALSE);
+ self->enterprise_domain_chosen = TRUE;
dialog_validate (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]