user-accounts: Use consistent naming for widgets
Remove widget IDs that are unused.
This commit is contained in:
parent
74cf3bcda1
commit
d77e3423d1
2 changed files with 217 additions and 215 deletions
|
@ -64,25 +64,26 @@ static void cc_add_user_dialog_response (GtkDialog *dialog,
|
||||||
struct _CcAddUserDialog {
|
struct _CcAddUserDialog {
|
||||||
GtkDialog parent_instance;
|
GtkDialog parent_instance;
|
||||||
|
|
||||||
GtkRadioButton *account_type_standard;
|
GtkButton *add_button;
|
||||||
GtkToggleButton *enterprise_button;
|
GtkToggleButton *enterprise_button;
|
||||||
GtkComboBox *enterprise_domain;
|
GtkComboBox *enterprise_domain_combo;
|
||||||
GtkEntry *enterprise_domain_entry;
|
GtkEntry *enterprise_domain_entry;
|
||||||
GtkLabel *enterprise_domain_hint;
|
GtkLabel *enterprise_domain_hint_label;
|
||||||
GtkLabel *enterprise_hint;
|
GtkLabel *enterprise_hint_label;
|
||||||
GtkEntry *enterprise_login;
|
GtkEntry *enterprise_login_entry;
|
||||||
GtkEntry *enterprise_password;
|
GtkEntry *enterprise_password_entry;
|
||||||
GtkListStore *enterprise_realms;
|
GtkListStore *enterprise_realm_model;
|
||||||
GtkLabel *local_hint;
|
GtkRadioButton *local_account_type_standard;
|
||||||
GtkEntry *local_name;
|
GtkLabel *local_hint_label;
|
||||||
|
GtkEntry *local_name_entry;
|
||||||
|
GtkComboBoxText *local_username_combo;
|
||||||
|
GtkEntry *local_password_entry;
|
||||||
GtkRadioButton *local_password_radio;
|
GtkRadioButton *local_password_radio;
|
||||||
GtkEntry *local_password;
|
|
||||||
GtkComboBoxText *local_username;
|
|
||||||
GtkEntry *local_username_entry;
|
GtkEntry *local_username_entry;
|
||||||
GtkLabel *local_username_hint;
|
GtkLabel *local_username_hint_label;
|
||||||
GtkLevelBar *local_strength_indicator;
|
GtkLevelBar *local_strength_indicator;
|
||||||
GtkEntry *local_verify;
|
GtkEntry *local_verify_entry;
|
||||||
GtkLabel *local_verify_hint;
|
GtkLabel *local_verify_hint_label;
|
||||||
GtkSpinner *spinner;
|
GtkSpinner *spinner;
|
||||||
GtkStack *stack;
|
GtkStack *stack;
|
||||||
|
|
||||||
|
@ -190,7 +191,7 @@ user_loaded_cb (ActUser *user,
|
||||||
finish_action (self);
|
finish_action (self);
|
||||||
|
|
||||||
/* Set a password for the user */
|
/* Set a password for the user */
|
||||||
password = gtk_entry_get_text (self->local_password);
|
password = gtk_entry_get_text (self->local_password_entry);
|
||||||
act_user_set_password_mode (user, self->local_password_mode);
|
act_user_set_password_mode (user, self->local_password_mode);
|
||||||
if (self->local_password_mode == ACT_USER_PASSWORD_MODE_REGULAR)
|
if (self->local_password_mode == ACT_USER_PASSWORD_MODE_REGULAR)
|
||||||
act_user_set_password (user, password, "");
|
act_user_set_password (user, password, "");
|
||||||
|
@ -217,7 +218,7 @@ create_user_done (ActUserManager *manager,
|
||||||
if (!g_error_matches (error, ACT_USER_MANAGER_ERROR, ACT_USER_MANAGER_ERROR_PERMISSION_DENIED))
|
if (!g_error_matches (error, ACT_USER_MANAGER_ERROR, ACT_USER_MANAGER_ERROR_PERMISSION_DENIED))
|
||||||
show_error_dialog (self, _("Failed to add account"), error);
|
show_error_dialog (self, _("Failed to add account"), error);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self->local_name));
|
gtk_widget_grab_focus (GTK_WIDGET (self->local_name_entry));
|
||||||
} else {
|
} else {
|
||||||
g_debug ("Created user: %s", act_user_get_user_name (user));
|
g_debug ("Created user: %s", act_user_get_user_name (user));
|
||||||
|
|
||||||
|
@ -239,9 +240,9 @@ local_create_user (CcAddUserDialog *self)
|
||||||
|
|
||||||
begin_action (self);
|
begin_action (self);
|
||||||
|
|
||||||
name = gtk_entry_get_text (self->local_name);
|
name = gtk_entry_get_text (self->local_name_entry);
|
||||||
username = gtk_combo_box_text_get_active_text (self->local_username);
|
username = gtk_combo_box_text_get_active_text (self->local_username_combo);
|
||||||
account_type = (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->account_type_standard)) ? ACT_USER_ACCOUNT_TYPE_STANDARD : ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR);
|
account_type = (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->local_account_type_standard)) ? ACT_USER_ACCOUNT_TYPE_STANDARD : ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR);
|
||||||
|
|
||||||
g_debug ("Creating local user: %s", username);
|
g_debug ("Creating local user: %s", username);
|
||||||
|
|
||||||
|
@ -264,25 +265,25 @@ update_password_strength (CcAddUserDialog *self)
|
||||||
const gchar *verify;
|
const gchar *verify;
|
||||||
gint strength_level;
|
gint strength_level;
|
||||||
|
|
||||||
password = gtk_entry_get_text (self->local_password);
|
password = gtk_entry_get_text (self->local_password_entry);
|
||||||
username = gtk_combo_box_text_get_active_text (self->local_username);
|
username = gtk_combo_box_text_get_active_text (self->local_username_combo);
|
||||||
|
|
||||||
pw_strength (password, NULL, username, &hint, &strength_level);
|
pw_strength (password, NULL, username, &hint, &strength_level);
|
||||||
|
|
||||||
gtk_label_set_label (self->local_hint, hint);
|
gtk_label_set_label (self->local_hint_label, hint);
|
||||||
gtk_level_bar_set_value (self->local_strength_indicator, strength_level);
|
gtk_level_bar_set_value (self->local_strength_indicator, strength_level);
|
||||||
|
|
||||||
if (strength_level > 1) {
|
if (strength_level > 1) {
|
||||||
set_entry_validation_checkmark (self->local_password);
|
set_entry_validation_checkmark (self->local_password_entry);
|
||||||
} else if (strlen (password) == 0) {
|
} else if (strlen (password) == 0) {
|
||||||
set_entry_generation_icon (self->local_password);
|
set_entry_generation_icon (self->local_password_entry);
|
||||||
} else {
|
} else {
|
||||||
clear_entry_validation_error (self->local_password);
|
clear_entry_validation_error (self->local_password_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
verify = gtk_entry_get_text (self->local_verify);
|
verify = gtk_entry_get_text (self->local_verify_entry);
|
||||||
if (strlen (verify) == 0) {
|
if (strlen (verify) == 0) {
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify), strength_level > 1);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify_entry), strength_level > 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return strength_level;
|
return strength_level;
|
||||||
|
@ -300,24 +301,24 @@ local_validate (CcAddUserDialog *self)
|
||||||
gchar *tip;
|
gchar *tip;
|
||||||
gint strength;
|
gint strength;
|
||||||
|
|
||||||
name = gtk_combo_box_text_get_active_text (self->local_username);
|
name = gtk_combo_box_text_get_active_text (self->local_username_combo);
|
||||||
valid_login = is_valid_username (name, &tip);
|
valid_login = is_valid_username (name, &tip);
|
||||||
|
|
||||||
gtk_label_set_label (self->local_username_hint, tip);
|
gtk_label_set_label (self->local_username_hint_label, tip);
|
||||||
g_free (tip);
|
g_free (tip);
|
||||||
|
|
||||||
if (valid_login) {
|
if (valid_login) {
|
||||||
set_entry_validation_checkmark (self->local_username_entry);
|
set_entry_validation_checkmark (self->local_username_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
name = gtk_entry_get_text (self->local_name);
|
name = gtk_entry_get_text (self->local_name_entry);
|
||||||
valid_name = is_valid_name (name);
|
valid_name = is_valid_name (name);
|
||||||
if (valid_name) {
|
if (valid_name) {
|
||||||
set_entry_validation_checkmark (self->local_name);
|
set_entry_validation_checkmark (self->local_name_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
password = gtk_entry_get_text (self->local_password);
|
password = gtk_entry_get_text (self->local_password_entry);
|
||||||
verify = gtk_entry_get_text (self->local_verify);
|
verify = gtk_entry_get_text (self->local_verify_entry);
|
||||||
if (self->local_password_mode == ACT_USER_PASSWORD_MODE_REGULAR) {
|
if (self->local_password_mode == ACT_USER_PASSWORD_MODE_REGULAR) {
|
||||||
strength = update_password_strength (self);
|
strength = update_password_strength (self);
|
||||||
valid_password = strength > 1 && strcmp (password, verify) == 0;
|
valid_password = strength > 1 && strcmp (password, verify) == 0;
|
||||||
|
@ -339,7 +340,7 @@ local_username_timeout (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
local_username_focus_out_event_cb (CcAddUserDialog *self)
|
local_username_combo_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
if (self->local_username_timeout_id != 0) {
|
if (self->local_username_timeout_id != 0) {
|
||||||
g_source_remove (self->local_username_timeout_id);
|
g_source_remove (self->local_username_timeout_id);
|
||||||
|
@ -352,7 +353,7 @@ local_username_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_username_changed_cb (CcAddUserDialog *self)
|
local_username_combo_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
const gchar *username;
|
const gchar *username;
|
||||||
|
|
||||||
|
@ -360,7 +361,7 @@ local_username_changed_cb (CcAddUserDialog *self)
|
||||||
if (*username == '\0')
|
if (*username == '\0')
|
||||||
self->has_custom_username = FALSE;
|
self->has_custom_username = FALSE;
|
||||||
else if (gtk_widget_has_focus (GTK_WIDGET (self->local_username_entry)) ||
|
else if (gtk_widget_has_focus (GTK_WIDGET (self->local_username_entry)) ||
|
||||||
gtk_combo_box_get_active (GTK_COMBO_BOX (self->local_username)) > 0)
|
gtk_combo_box_get_active (GTK_COMBO_BOX (self->local_username_combo)) > 0)
|
||||||
self->has_custom_username = TRUE;
|
self->has_custom_username = TRUE;
|
||||||
|
|
||||||
if (self->local_username_timeout_id != 0) {
|
if (self->local_username_timeout_id != 0) {
|
||||||
|
@ -385,7 +386,7 @@ local_name_timeout (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
local_name_focus_out_event_cb (CcAddUserDialog *self)
|
local_name_entry_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
if (self->local_name_timeout_id != 0) {
|
if (self->local_name_timeout_id != 0) {
|
||||||
g_source_remove (self->local_name_timeout_id);
|
g_source_remove (self->local_name_timeout_id);
|
||||||
|
@ -398,21 +399,21 @@ local_name_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_name_changed_cb (CcAddUserDialog *self)
|
local_name_entry_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
model = gtk_combo_box_get_model (GTK_COMBO_BOX (self->local_username));
|
model = gtk_combo_box_get_model (GTK_COMBO_BOX (self->local_username_combo));
|
||||||
gtk_list_store_clear (GTK_LIST_STORE (model));
|
gtk_list_store_clear (GTK_LIST_STORE (model));
|
||||||
|
|
||||||
name = gtk_entry_get_text (self->local_name);
|
name = gtk_entry_get_text (self->local_name_entry);
|
||||||
if ((name == NULL || strlen (name) == 0) && !self->has_custom_username) {
|
if ((name == NULL || strlen (name) == 0) && !self->has_custom_username) {
|
||||||
gtk_entry_set_text (self->local_username_entry, "");
|
gtk_entry_set_text (self->local_username_entry, "");
|
||||||
} else if (name != NULL && strlen (name) != 0) {
|
} else if (name != NULL && strlen (name) != 0) {
|
||||||
generate_username_choices (name, GTK_LIST_STORE (model));
|
generate_username_choices (name, GTK_LIST_STORE (model));
|
||||||
if (!self->has_custom_username)
|
if (!self->has_custom_username)
|
||||||
gtk_combo_box_set_active (GTK_COMBO_BOX (self->local_username), 0);
|
gtk_combo_box_set_active (GTK_COMBO_BOX (self->local_username_combo), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->local_name_timeout_id != 0) {
|
if (self->local_name_timeout_id != 0) {
|
||||||
|
@ -420,7 +421,7 @@ local_name_changed_cb (CcAddUserDialog *self)
|
||||||
self->local_name_timeout_id = 0;
|
self->local_name_timeout_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_entry_validation_error (self->local_name);
|
clear_entry_validation_error (self->local_name_entry);
|
||||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, FALSE);
|
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, FALSE);
|
||||||
|
|
||||||
self->local_name_timeout_id = g_timeout_add (PASSWORD_CHECK_TIMEOUT, (GSourceFunc) local_name_timeout, self);
|
self->local_name_timeout_id = g_timeout_add (PASSWORD_CHECK_TIMEOUT, (GSourceFunc) local_name_timeout, self);
|
||||||
|
@ -433,20 +434,20 @@ update_password_match (CcAddUserDialog *self)
|
||||||
const gchar *verify;
|
const gchar *verify;
|
||||||
const gchar *message = "";
|
const gchar *message = "";
|
||||||
|
|
||||||
password = gtk_entry_get_text (self->local_password);
|
password = gtk_entry_get_text (self->local_password_entry);
|
||||||
verify = gtk_entry_get_text (self->local_verify);
|
verify = gtk_entry_get_text (self->local_verify_entry);
|
||||||
if (strlen (verify) != 0) {
|
if (strlen (verify) != 0) {
|
||||||
if (strcmp (password, verify) != 0) {
|
if (strcmp (password, verify) != 0) {
|
||||||
message = _("The passwords do not match.");
|
message = _("The passwords do not match.");
|
||||||
} else {
|
} else {
|
||||||
set_entry_validation_checkmark (self->local_verify);
|
set_entry_validation_checkmark (self->local_verify_entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gtk_label_set_label (self->local_verify_hint, message);
|
gtk_label_set_label (self->local_verify_hint_label, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_password_icon_press_cb (CcAddUserDialog *self)
|
local_password_entry_icon_press_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
gchar *pwd;
|
gchar *pwd;
|
||||||
|
|
||||||
|
@ -454,10 +455,10 @@ local_password_icon_press_cb (CcAddUserDialog *self)
|
||||||
if (pwd == NULL)
|
if (pwd == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
gtk_entry_set_text (self->local_password, pwd);
|
gtk_entry_set_text (self->local_password_entry, pwd);
|
||||||
gtk_entry_set_text (self->local_verify, pwd);
|
gtk_entry_set_text (self->local_verify_entry, pwd);
|
||||||
gtk_entry_set_visibility (self->local_password, TRUE);
|
gtk_entry_set_visibility (self->local_password_entry, TRUE);
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify), TRUE);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify_entry), TRUE);
|
||||||
|
|
||||||
g_free (pwd);
|
g_free (pwd);
|
||||||
}
|
}
|
||||||
|
@ -487,7 +488,7 @@ password_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
local_password_key_press_event_cb (CcAddUserDialog *self,
|
local_password_entry_key_press_event_cb (CcAddUserDialog *self,
|
||||||
GdkEvent *event)
|
GdkEvent *event)
|
||||||
{
|
{
|
||||||
GdkEventKey *key = (GdkEventKey *)event;
|
GdkEventKey *key = (GdkEventKey *)event;
|
||||||
|
@ -510,26 +511,26 @@ recheck_password_match (CcAddUserDialog *self)
|
||||||
|
|
||||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, FALSE);
|
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, FALSE);
|
||||||
|
|
||||||
password = gtk_entry_get_text (self->local_password);
|
password = gtk_entry_get_text (self->local_password_entry);
|
||||||
if (strlen (password) == 0) {
|
if (strlen (password) == 0) {
|
||||||
gtk_entry_set_visibility (self->local_password, FALSE);
|
gtk_entry_set_visibility (self->local_password_entry, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
self->local_password_timeout_id = g_timeout_add (PASSWORD_CHECK_TIMEOUT, (GSourceFunc) local_password_timeout, self);
|
self->local_password_timeout_id = g_timeout_add (PASSWORD_CHECK_TIMEOUT, (GSourceFunc) local_password_timeout, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_password_changed_cb (CcAddUserDialog *self)
|
local_password_entry_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
clear_entry_validation_error (self->local_password);
|
clear_entry_validation_error (self->local_password_entry);
|
||||||
clear_entry_validation_error (self->local_verify);
|
clear_entry_validation_error (self->local_verify_entry);
|
||||||
recheck_password_match (self);
|
recheck_password_match (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_verify_changed_cb (CcAddUserDialog *self)
|
local_verify_entry_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
clear_entry_validation_error (self->local_verify);
|
clear_entry_validation_error (self->local_verify_entry);
|
||||||
recheck_password_match (self);
|
recheck_password_match (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,10 +542,10 @@ local_password_radio_changed_cb (CcAddUserDialog *self)
|
||||||
active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->local_password_radio));
|
active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->local_password_radio));
|
||||||
self->local_password_mode = active ? ACT_USER_PASSWORD_MODE_REGULAR : ACT_USER_PASSWORD_MODE_SET_AT_LOGIN;
|
self->local_password_mode = active ? ACT_USER_PASSWORD_MODE_REGULAR : ACT_USER_PASSWORD_MODE_SET_AT_LOGIN;
|
||||||
|
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_password), active);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_password_entry), active);
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify), active);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_verify_entry), active);
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_strength_indicator), active);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_strength_indicator), active);
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (self->local_hint), active);
|
gtk_widget_set_sensitive (GTK_WIDGET (self->local_hint_label), active);
|
||||||
|
|
||||||
dialog_validate (self);
|
dialog_validate (self);
|
||||||
}
|
}
|
||||||
|
@ -554,11 +555,11 @@ local_prepare (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
|
|
||||||
gtk_entry_set_text (self->local_name, "");
|
gtk_entry_set_text (self->local_name_entry, "");
|
||||||
gtk_entry_set_text (self->local_username_entry, "");
|
gtk_entry_set_text (self->local_username_entry, "");
|
||||||
model = gtk_combo_box_get_model (GTK_COMBO_BOX (self->local_username));
|
model = gtk_combo_box_get_model (GTK_COMBO_BOX (self->local_username_combo));
|
||||||
gtk_list_store_clear (GTK_LIST_STORE (model));
|
gtk_list_store_clear (GTK_LIST_STORE (model));
|
||||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->account_type_standard), TRUE);
|
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->local_account_type_standard), TRUE);
|
||||||
self->has_custom_username = FALSE;
|
self->has_custom_username = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -570,11 +571,11 @@ enterprise_validate (CcAddUserDialog *self)
|
||||||
gboolean valid_domain;
|
gboolean valid_domain;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
name = gtk_entry_get_text (self->enterprise_login);
|
name = gtk_entry_get_text (self->enterprise_login_entry);
|
||||||
valid_name = is_valid_name (name);
|
valid_name = is_valid_name (name);
|
||||||
|
|
||||||
if (gtk_combo_box_get_active_iter (self->enterprise_domain, &iter)) {
|
if (gtk_combo_box_get_active_iter (self->enterprise_domain_combo, &iter)) {
|
||||||
gtk_tree_model_get (gtk_combo_box_get_model (self->enterprise_domain),
|
gtk_tree_model_get (gtk_combo_box_get_model (self->enterprise_domain_combo),
|
||||||
&iter, 0, &name, -1);
|
&iter, 0, &name, -1);
|
||||||
} else {
|
} else {
|
||||||
name = gtk_entry_get_text (self->enterprise_domain_entry);
|
name = gtk_entry_get_text (self->enterprise_domain_entry);
|
||||||
|
@ -608,7 +609,7 @@ enterprise_add_realm (CcAddUserDialog *self,
|
||||||
* returns is the one it prefers.
|
* returns is the one it prefers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
model = GTK_TREE_MODEL (self->enterprise_realms);
|
model = GTK_TREE_MODEL (self->enterprise_realm_model);
|
||||||
ret = gtk_tree_model_get_iter_first (model, &iter);
|
ret = gtk_tree_model_get_iter_first (model, &iter);
|
||||||
while (ret) {
|
while (ret) {
|
||||||
gtk_tree_model_get (model, &iter, 0, &name, -1);
|
gtk_tree_model_get (model, &iter, 0, &name, -1);
|
||||||
|
@ -622,8 +623,8 @@ enterprise_add_realm (CcAddUserDialog *self,
|
||||||
ret = gtk_tree_model_iter_next (model, &iter);
|
ret = gtk_tree_model_iter_next (model, &iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_list_store_append (self->enterprise_realms, &iter);
|
gtk_list_store_append (self->enterprise_realm_model, &iter);
|
||||||
gtk_list_store_set (self->enterprise_realms, &iter,
|
gtk_list_store_set (self->enterprise_realm_model, &iter,
|
||||||
0, realm_name,
|
0, realm_name,
|
||||||
1, realm,
|
1, realm,
|
||||||
-1);
|
-1);
|
||||||
|
@ -707,7 +708,7 @@ on_permit_user_login (GObject *source,
|
||||||
* sure all that is functional.
|
* sure all that is functional.
|
||||||
*/
|
*/
|
||||||
manager = act_user_manager_get_default ();
|
manager = act_user_manager_get_default ();
|
||||||
login = um_realm_calculate_login (common, gtk_entry_get_text (self->enterprise_login));
|
login = um_realm_calculate_login (common, gtk_entry_get_text (self->enterprise_login_entry));
|
||||||
g_return_if_fail (login != NULL);
|
g_return_if_fail (login != NULL);
|
||||||
|
|
||||||
g_debug ("Caching remote user: %s", login);
|
g_debug ("Caching remote user: %s", login);
|
||||||
|
@ -744,7 +745,7 @@ enterprise_permit_user_login (CcAddUserDialog *self)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
login = um_realm_calculate_login (common, gtk_entry_get_text (self->enterprise_login));
|
login = um_realm_calculate_login (common, gtk_entry_get_text (self->enterprise_login_entry));
|
||||||
g_return_if_fail (login != NULL);
|
g_return_if_fail (login != NULL);
|
||||||
|
|
||||||
add[0] = login;
|
add[0] = login;
|
||||||
|
@ -980,8 +981,8 @@ on_realm_login (GObject *source,
|
||||||
/* Join the domain, try using the user's creds */
|
/* Join the domain, try using the user's creds */
|
||||||
} else if (creds == NULL ||
|
} else if (creds == NULL ||
|
||||||
!um_realm_join_as_user (self->selected_realm,
|
!um_realm_join_as_user (self->selected_realm,
|
||||||
gtk_entry_get_text (self->enterprise_login),
|
gtk_entry_get_text (self->enterprise_login_entry),
|
||||||
gtk_entry_get_text (self->enterprise_password),
|
gtk_entry_get_text (self->enterprise_password_entry),
|
||||||
creds, self->cancellable,
|
creds, self->cancellable,
|
||||||
on_realm_joined,
|
on_realm_joined,
|
||||||
g_object_ref (self))) {
|
g_object_ref (self))) {
|
||||||
|
@ -997,16 +998,16 @@ on_realm_login (GObject *source,
|
||||||
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_LOGIN)) {
|
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_LOGIN)) {
|
||||||
g_debug ("Problem with the user's login: %s", error->message);
|
g_debug ("Problem with the user's login: %s", error->message);
|
||||||
message = _("That login name didn’t work.\nPlease try again.");
|
message = _("That login name didn’t work.\nPlease try again.");
|
||||||
gtk_label_set_text (self->enterprise_hint, message);
|
gtk_label_set_text (self->enterprise_hint_label, message);
|
||||||
finish_action (self);
|
finish_action (self);
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_login));
|
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_login_entry));
|
||||||
|
|
||||||
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_PASSWORD)) {
|
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_PASSWORD)) {
|
||||||
g_debug ("Problem with the user's password: %s", error->message);
|
g_debug ("Problem with the user's password: %s", error->message);
|
||||||
message = _("That login password didn’t work.\nPlease try again.");
|
message = _("That login password didn’t work.\nPlease try again.");
|
||||||
gtk_label_set_text (self->enterprise_hint, message);
|
gtk_label_set_text (self->enterprise_hint_label, message);
|
||||||
finish_action (self);
|
finish_action (self);
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_password));
|
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_password_entry));
|
||||||
|
|
||||||
/* Other login failure */
|
/* Other login failure */
|
||||||
} else {
|
} else {
|
||||||
|
@ -1026,8 +1027,8 @@ enterprise_check_login (CcAddUserDialog *self)
|
||||||
g_assert (self->selected_realm);
|
g_assert (self->selected_realm);
|
||||||
|
|
||||||
um_realm_login (self->selected_realm,
|
um_realm_login (self->selected_realm,
|
||||||
gtk_entry_get_text (self->enterprise_login),
|
gtk_entry_get_text (self->enterprise_login_entry),
|
||||||
gtk_entry_get_text (self->enterprise_password),
|
gtk_entry_get_text (self->enterprise_password_entry),
|
||||||
self->cancellable,
|
self->cancellable,
|
||||||
on_realm_login,
|
on_realm_login,
|
||||||
g_object_ref (self));
|
g_object_ref (self));
|
||||||
|
@ -1060,7 +1061,7 @@ on_realm_discover_input (GObject *source,
|
||||||
enterprise_check_login (self);
|
enterprise_check_login (self);
|
||||||
}
|
}
|
||||||
set_entry_validation_checkmark (self->enterprise_domain_entry);
|
set_entry_validation_checkmark (self->enterprise_domain_entry);
|
||||||
gtk_label_set_text (self->enterprise_domain_hint, DOMAIN_DEFAULT_HINT);
|
gtk_label_set_text (self->enterprise_domain_hint_label, DOMAIN_DEFAULT_HINT);
|
||||||
g_list_free_full (realms, g_object_unref);
|
g_list_free_full (realms, g_object_unref);
|
||||||
|
|
||||||
/* The domain is likely invalid*/
|
/* The domain is likely invalid*/
|
||||||
|
@ -1073,7 +1074,7 @@ on_realm_discover_input (GObject *source,
|
||||||
} else {
|
} else {
|
||||||
message = g_strdup_printf ("%s.", error->message);
|
message = g_strdup_printf ("%s.", error->message);
|
||||||
}
|
}
|
||||||
gtk_label_set_text (self->enterprise_domain_hint, message);
|
gtk_label_set_text (self->enterprise_domain_hint_label, message);
|
||||||
|
|
||||||
g_free (message);
|
g_free (message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
@ -1099,7 +1100,7 @@ enterprise_check_domain (CcAddUserDialog *self)
|
||||||
|
|
||||||
domain = gtk_entry_get_text (self->enterprise_domain_entry);
|
domain = gtk_entry_get_text (self->enterprise_domain_entry);
|
||||||
if (strlen (domain) == 0) {
|
if (strlen (domain) == 0) {
|
||||||
gtk_label_set_text (self->enterprise_domain_hint, DOMAIN_DEFAULT_HINT);
|
gtk_label_set_text (self->enterprise_domain_hint_label, DOMAIN_DEFAULT_HINT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1196,7 +1197,7 @@ on_realmd_disappeared (GDBusConnection *unused1,
|
||||||
CcAddUserDialog *self = CC_ADD_USER_DIALOG (user_data);
|
CcAddUserDialog *self = CC_ADD_USER_DIALOG (user_data);
|
||||||
|
|
||||||
clear_realm_manager (self);
|
clear_realm_manager (self);
|
||||||
gtk_list_store_clear (self->enterprise_realms);
|
gtk_list_store_clear (self->enterprise_realm_model);
|
||||||
gtk_widget_hide (GTK_WIDGET (self->enterprise_button));
|
gtk_widget_hide (GTK_WIDGET (self->enterprise_button));
|
||||||
mode_change (self, MODE_LOCAL);
|
mode_change (self, MODE_LOCAL);
|
||||||
}
|
}
|
||||||
|
@ -1219,10 +1220,10 @@ enterprise_domain_timeout (CcAddUserDialog *self)
|
||||||
|
|
||||||
self->enterprise_domain_timeout_id = 0;
|
self->enterprise_domain_timeout_id = 0;
|
||||||
|
|
||||||
if (gtk_combo_box_get_active_iter (self->enterprise_domain, &iter)) {
|
if (gtk_combo_box_get_active_iter (self->enterprise_domain_combo, &iter)) {
|
||||||
gtk_tree_model_get (gtk_combo_box_get_model (self->enterprise_domain), &iter, 1, &self->selected_realm, -1);
|
gtk_tree_model_get (gtk_combo_box_get_model (self->enterprise_domain_combo), &iter, 1, &self->selected_realm, -1);
|
||||||
set_entry_validation_checkmark (self->enterprise_domain_entry);
|
set_entry_validation_checkmark (self->enterprise_domain_entry);
|
||||||
gtk_label_set_text (self->enterprise_domain_hint, DOMAIN_DEFAULT_HINT);
|
gtk_label_set_text (self->enterprise_domain_hint_label, DOMAIN_DEFAULT_HINT);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
enterprise_check_domain (self);
|
enterprise_check_domain (self);
|
||||||
|
@ -1232,7 +1233,7 @@ enterprise_domain_timeout (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enterprise_domain_changed_cb (CcAddUserDialog *self)
|
enterprise_domain_combo_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
if (self->enterprise_domain_timeout_id != 0) {
|
if (self->enterprise_domain_timeout_id != 0) {
|
||||||
g_source_remove (self->enterprise_domain_timeout_id);
|
g_source_remove (self->enterprise_domain_timeout_id);
|
||||||
|
@ -1249,7 +1250,7 @@ enterprise_domain_changed_cb (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
enterprise_domain_focus_out_event_cb (CcAddUserDialog *self)
|
enterprise_domain_combo_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
if (self->enterprise_domain_timeout_id != 0) {
|
if (self->enterprise_domain_timeout_id != 0) {
|
||||||
g_source_remove (self->enterprise_domain_timeout_id);
|
g_source_remove (self->enterprise_domain_timeout_id);
|
||||||
|
@ -1264,25 +1265,25 @@ enterprise_domain_focus_out_event_cb (CcAddUserDialog *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enterprise_login_changed_cb (CcAddUserDialog *self)
|
enterprise_login_entry_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
dialog_validate (self);
|
dialog_validate (self);
|
||||||
clear_entry_validation_error (self->enterprise_login);
|
clear_entry_validation_error (self->enterprise_login_entry);
|
||||||
clear_entry_validation_error (self->enterprise_password);
|
clear_entry_validation_error (self->enterprise_password_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enterprise_password_changed_cb (CcAddUserDialog *self)
|
enterprise_password_entry_changed_cb (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
dialog_validate (self);
|
dialog_validate (self);
|
||||||
clear_entry_validation_error (self->enterprise_password);
|
clear_entry_validation_error (self->enterprise_password_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enterprise_prepare (CcAddUserDialog *self)
|
enterprise_prepare (CcAddUserDialog *self)
|
||||||
{
|
{
|
||||||
gtk_entry_set_text (self->enterprise_login, "");
|
gtk_entry_set_text (self->enterprise_login_entry, "");
|
||||||
gtk_entry_set_text (self->enterprise_password, "");
|
gtk_entry_set_text (self->enterprise_password_entry, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1491,43 +1492,44 @@ cc_add_user_dialog_class_init (CcAddUserDialogClass *klass)
|
||||||
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (dialog_class),
|
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (dialog_class),
|
||||||
"/org/gnome/control-center/user-accounts/cc-add-user-dialog.ui");
|
"/org/gnome/control-center/user-accounts/cc-add-user-dialog.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, account_type_standard);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, add_button);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_button);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_button);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_combo);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_entry);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_hint_label);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_hint_label);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_password);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_password_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_realms);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_realm_model);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_account_type_standard);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_name);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_hint_label);
|
||||||
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_name_entry);
|
||||||
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username_combo);
|
||||||
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_password_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_password_radio);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_password_radio);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_password);
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username);
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username_entry);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_username_hint_label);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_strength_indicator);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_strength_indicator);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_verify);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_verify_entry);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_verify_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, local_verify_hint_label);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, spinner);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, spinner);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, stack);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, stack);
|
||||||
|
|
||||||
gtk_widget_class_bind_template_callback (widget_class, dialog_validate);
|
gtk_widget_class_bind_template_callback (widget_class, dialog_validate);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, enterprise_button_toggled_cb);
|
gtk_widget_class_bind_template_callback (widget_class, enterprise_button_toggled_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, enterprise_domain_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, enterprise_domain_combo_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, enterprise_domain_focus_out_event_cb);
|
gtk_widget_class_bind_template_callback (widget_class, enterprise_domain_combo_focus_out_event_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, enterprise_login_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, enterprise_login_entry_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, enterprise_password_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, enterprise_password_entry_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_name_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_name_entry_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_name_focus_out_event_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_name_entry_focus_out_event_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_password_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_password_entry_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_password_icon_press_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_password_entry_icon_press_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_password_key_press_event_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_password_entry_key_press_event_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_password_radio_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_password_radio_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_username_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_username_combo_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_username_focus_out_event_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_username_combo_focus_out_event_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, local_verify_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, local_verify_entry_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, password_focus_out_event_cb);
|
gtk_widget_class_bind_template_callback (widget_class, password_focus_out_event_cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1567,7 +1569,7 @@ cc_add_user_dialog_show (CcAddUserDialog *self,
|
||||||
gtk_window_set_modal (GTK_WINDOW (self), parent != NULL);
|
gtk_window_set_modal (GTK_WINDOW (self), parent != NULL);
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (self), parent);
|
gtk_window_set_transient_for (GTK_WINDOW (self), parent);
|
||||||
gtk_window_present (GTK_WINDOW (self));
|
gtk_window_present (GTK_WINDOW (self));
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self->local_name));
|
gtk_widget_grab_focus (GTK_WIDGET (self->local_name_entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
ActUser *
|
ActUser *
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<interface>
|
<interface>
|
||||||
<!-- interface-requires gtk+ 3.8 -->
|
<!-- interface-requires gtk+ 3.8 -->
|
||||||
<!-- interface-naming-policy toplevel-contextual -->
|
<!-- interface-naming-policy toplevel-contextual -->
|
||||||
<object class="GtkListStore" id="username-model">
|
<object class="GtkListStore" id="username_model">
|
||||||
<columns>
|
<columns>
|
||||||
<!-- column-name gchararray -->
|
<!-- column-name gchararray -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
@ -19,12 +19,12 @@
|
||||||
<property name="icon_name">system-users</property>
|
<property name="icon_name">system-users</property>
|
||||||
<property name="use_header_bar">1</property>
|
<property name="use_header_bar">1</property>
|
||||||
<child internal-child="headerbar">
|
<child internal-child="headerbar">
|
||||||
<object class="GtkHeaderBar" id="headerbar">
|
<object class="GtkHeaderBar">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="show_close_button">False</property>
|
<property name="show_close_button">False</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button1">
|
<object class="GtkButton" id="cancel_button">
|
||||||
<property name="label" translatable="yes">_Cancel</property>
|
<property name="label" translatable="yes">_Cancel</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button2">
|
<object class="GtkButton" id="add_button">
|
||||||
<property name="label" translatable="yes">_Add</property>
|
<property name="label" translatable="yes">_Add</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="account-dialog">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="transition-type">none</property>
|
<property name="transition-type">none</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkGrid" id="local_area">
|
<object class="GtkGrid">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="column_spacing">6</property>
|
<property name="column_spacing">6</property>
|
||||||
|
@ -93,14 +93,14 @@
|
||||||
<property name="border_width">20</property>
|
<property name="border_width">20</property>
|
||||||
<property name="margin_end">20</property>
|
<property name="margin_end">20</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkComboBoxText" id="local_username">
|
<object class="GtkComboBoxText" id="local_username_combo">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="has_entry">True</property>
|
<property name="has_entry">True</property>
|
||||||
<property name="entry_text_column">0</property>
|
<property name="entry_text_column">0</property>
|
||||||
<property name="model">username-model</property>
|
<property name="model">username_model</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<signal name="changed" handler="local_username_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="changed" handler="local_username_combo_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="focus-out-event" handler="local_username_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="focus-out-event" handler="local_username_combo_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<child internal-child="entry">
|
<child internal-child="entry">
|
||||||
<object class="GtkEntry" id="local_username_entry">
|
<object class="GtkEntry" id="local_username_entry">
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="local_username_hint">
|
<object class="GtkLabel" id="local_username_hint_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0</property>
|
||||||
|
@ -139,12 +139,12 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label6">
|
<object class="GtkLabel" id="local_username_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Username</property>
|
<property name="label" translatable="yes">_Username</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">local_username</property>
|
<property name="mnemonic_widget">local_username_combo</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -156,13 +156,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEntry" id="local_name">
|
<object class="GtkEntry" id="local_name_entry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<signal name="changed" handler="local_name_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="changed" handler="local_name_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="focus-out-event" handler="local_name_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="focus-out-event" handler="local_name_entry_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
|
@ -171,12 +171,12 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label5">
|
<object class="GtkLabel" id="local_name_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Full Name</property>
|
<property name="label" translatable="yes">_Full Name</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">local_name</property>
|
<property name="mnemonic_widget">local_name_entry</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="local-account-type">
|
<object class="GtkBox" id="local_account_type_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
<class name="linked"/>
|
<class name="linked"/>
|
||||||
</style>
|
</style>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkRadioButton" id="account_type_standard">
|
<object class="GtkRadioButton" id="local_account_type_standard">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -206,14 +206,14 @@
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkRadioButton" id="account-type-admin">
|
<object class="GtkRadioButton" id="account_type_admin">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="label" translatable="yes">Administrator</property>
|
<property name="label" translatable="yes">Administrator</property>
|
||||||
<property name="draw_indicator">False</property>
|
<property name="draw_indicator">False</property>
|
||||||
<property name="height_request">35</property>
|
<property name="height_request">35</property>
|
||||||
<property name="group">account_type_standard</property>
|
<property name="group">local_account_type_standard</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -223,12 +223,12 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label7">
|
<object class="GtkLabel" id="local_account_type_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">Account _Type</property>
|
<property name="label" translatable="yes">Account _Type</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">local-account-type</property>
|
<property name="mnemonic_widget">local_account_type_box</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -240,7 +240,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label1">
|
<object class="GtkLabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">Password</property>
|
<property name="label" translatable="yes">Password</property>
|
||||||
|
@ -257,7 +257,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box19">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
|
@ -300,13 +300,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label2">
|
<object class="GtkLabel" id="local_password_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Password</property>
|
<property name="label" translatable="yes">_Password</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">local_password</property>
|
<property name="mnemonic_widget">local_password_entry</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -320,7 +320,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEntry" id="local_password">
|
<object class="GtkEntry" id="local_password_entry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
@ -331,10 +331,10 @@
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
<property name="input_purpose">password</property>
|
<property name="input_purpose">password</property>
|
||||||
<signal name="notify::text" handler="local_password_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="notify::text" handler="local_password_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="icon-press" handler="local_password_icon_press_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="icon-press" handler="local_password_entry_icon_press_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="focus-out-event" handler="password_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="focus-out-event" handler="password_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="key-press-event" handler="local_password_key_press_event_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="key-press-event" handler="local_password_entry_key_press_event_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
|
@ -367,7 +367,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="local_hint">
|
<object class="GtkLabel" id="local_hint_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -395,13 +395,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label3">
|
<object class="GtkLabel" id="local_verify_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Confirm</property>
|
<property name="label" translatable="yes">_Confirm</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">local_verify</property>
|
<property name="mnemonic_widget">local_verify_entry</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -415,7 +415,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEntry" id="local_verify">
|
<object class="GtkEntry" id="local_verify_entry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
@ -424,7 +424,7 @@
|
||||||
<property name="invisible_char_set">True</property>
|
<property name="invisible_char_set">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="input_purpose">password</property>
|
<property name="input_purpose">password</property>
|
||||||
<signal name="notify::text" handler="local_verify_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="notify::text" handler="local_verify_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="focus-out-event" handler="password_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="focus-out-event" handler="password_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="activate" handler="dialog_validate" object="CcAddUserDialog" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
|
@ -436,7 +436,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="local_verify_hint">
|
<object class="GtkLabel" id="local_verify_hint_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0</property>
|
||||||
|
@ -467,7 +467,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkGrid" id="enterprise-area">
|
<object class="GtkGrid">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -476,7 +476,7 @@
|
||||||
<property name="border_width">20</property>
|
<property name="border_width">20</property>
|
||||||
<property name="margin_end">20</property>
|
<property name="margin_end">20</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label10">
|
<object class="GtkLabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">Enterprise login allows an existing centrally managed user account to be used on this device. You can also use this account to access company resources on the internet.</property>
|
<property name="label" translatable="yes">Enterprise login allows an existing centrally managed user account to be used on this device. You can also use this account to access company resources on the internet.</property>
|
||||||
|
@ -497,13 +497,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label4">
|
<object class="GtkLabel" id="enterprise_domain_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Domain</property>
|
<property name="label" translatable="yes">_Domain</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">enterprise_domain</property>
|
<property name="mnemonic_widget">enterprise_domain_combo</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -517,13 +517,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label8">
|
<object class="GtkLabel" id="enterprise_login_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Username</property>
|
<property name="label" translatable="yes">_Username</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">enterprise_login</property>
|
<property name="mnemonic_widget">enterprise_login_entry</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -537,13 +537,13 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label9">
|
<object class="GtkLabel" id="enterprise_password_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">1</property>
|
<property name="xalign">1</property>
|
||||||
<property name="label" translatable="yes">_Password</property>
|
<property name="label" translatable="yes">_Password</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="mnemonic_widget">enterprise_password</property>
|
<property name="mnemonic_widget">enterprise_password_entry</property>
|
||||||
<property name="margin_start">20</property>
|
<property name="margin_start">20</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
@ -557,7 +557,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="enterprise_hint">
|
<object class="GtkLabel" id="enterprise_hint_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0</property>
|
||||||
|
@ -584,15 +584,15 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkComboBox" id="enterprise_domain">
|
<object class="GtkComboBox" id="enterprise_domain_combo">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<property name="has_entry">True</property>
|
<property name="has_entry">True</property>
|
||||||
<property name="entry_text_column">0</property>
|
<property name="entry_text_column">0</property>
|
||||||
<property name="model">enterprise_realms</property>
|
<property name="model">enterprise_realm_model</property>
|
||||||
<signal name="changed" handler="enterprise_domain_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="changed" handler="enterprise_domain_combo_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<signal name="focus-out-event" handler="enterprise_domain_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="focus-out-event" handler="enterprise_domain_combo_focus_out_event_cb" after="yes" object="CcAddUserDialog" swapped="yes"/>
|
||||||
<child internal-child="entry">
|
<child internal-child="entry">
|
||||||
<object class="GtkEntry" id="enterprise_domain_entry">
|
<object class="GtkEntry" id="enterprise_domain_entry">
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
@ -607,7 +607,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="enterprise_domain_hint">
|
<object class="GtkLabel" id="enterprise_domain_hint_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0</property>
|
||||||
|
@ -635,7 +635,7 @@
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEntry" id="enterprise_login">
|
<object class="GtkEntry" id="enterprise_login_entry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -643,7 +643,7 @@
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
<property name="invisible_char_set">True</property>
|
<property name="invisible_char_set">True</property>
|
||||||
<property name="input_purpose">password</property>
|
<property name="input_purpose">password</property>
|
||||||
<signal name="changed" handler="enterprise_login_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="changed" handler="enterprise_login_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
|
@ -653,7 +653,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkEntry" id="enterprise_password">
|
<object class="GtkEntry" id="enterprise_password_entry">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -662,7 +662,7 @@
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
<property name="invisible_char_set">True</property>
|
<property name="invisible_char_set">True</property>
|
||||||
<property name="input_purpose">password</property>
|
<property name="input_purpose">password</property>
|
||||||
<signal name="changed" handler="enterprise_password_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
<signal name="changed" handler="enterprise_password_entry_changed_cb" object="CcAddUserDialog" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">1</property>
|
<property name="left_attach">1</property>
|
||||||
|
@ -677,7 +677,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkGrid" id="enterprise-offline-area">
|
<object class="GtkGrid">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
|
@ -685,7 +685,7 @@
|
||||||
<property name="row_spacing">8</property>
|
<property name="row_spacing">8</property>
|
||||||
<property name="border_width">20</property>
|
<property name="border_width">20</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label18">
|
<object class="GtkLabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">Enterprise login allows an existing centrally managed user account to be used on this device. You can also use this account to access company resources on the internet.</property>
|
<property name="label" translatable="yes">Enterprise login allows an existing centrally managed user account to be used on this device. You can also use this account to access company resources on the internet.</property>
|
||||||
|
@ -707,7 +707,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage" id="image1">
|
<object class="GtkImage">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="icon_name">network-offline-symbolic</property>
|
<property name="icon_name">network-offline-symbolic</property>
|
||||||
|
@ -744,7 +744,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label17">
|
<object class="GtkLabel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">You must be online in order to add enterprise users.</property>
|
<property name="label" translatable="yes">You must be online in order to add enterprise users.</property>
|
||||||
|
@ -776,7 +776,7 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box3">
|
<object class="GtkBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<child>
|
<child>
|
||||||
|
@ -805,54 +805,54 @@
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<action-widgets>
|
<action-widgets>
|
||||||
<action-widget response="-6">button1</action-widget>
|
<action-widget response="-6">cancel_button</action-widget>
|
||||||
<action-widget response="-5">button2</action-widget>
|
<action-widget response="-5">add_button</action-widget>
|
||||||
</action-widgets>
|
</action-widgets>
|
||||||
</template>
|
</template>
|
||||||
<object class="GtkSizeGroup" id="labels_sizegroup">
|
<object class="GtkSizeGroup">
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="label6"/>
|
<widget name="local_username_label"/>
|
||||||
<widget name="label5"/>
|
<widget name="local_name_label"/>
|
||||||
<widget name="label7"/>
|
<widget name="local_account_type_label"/>
|
||||||
<widget name="label4"/>
|
<widget name="enterprise_domain_label"/>
|
||||||
<widget name="label8"/>
|
<widget name="enterprise_login_label"/>
|
||||||
<widget name="label9"/>
|
<widget name="enterprise_password_label"/>
|
||||||
<widget name="label2"/>
|
<widget name="local_password_label"/>
|
||||||
<widget name="label3"/>
|
<widget name="local_verify_label"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkSizeGroup" id="controls_sizegroup">
|
<object class="GtkSizeGroup">
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="local_username"/>
|
<widget name="local_username_combo"/>
|
||||||
<widget name="local_username_hint"/>
|
<widget name="local_username_hint_label"/>
|
||||||
<widget name="local_name"/>
|
<widget name="local_name_entry"/>
|
||||||
<widget name="local-account-type"/>
|
<widget name="local_account_type_box"/>
|
||||||
<widget name="local_password"/>
|
<widget name="local_password_entry"/>
|
||||||
<widget name="local_hint"/>
|
<widget name="local_hint_label"/>
|
||||||
<widget name="local_verify"/>
|
<widget name="local_verify_entry"/>
|
||||||
<widget name="local_verify_hint"/>
|
<widget name="local_verify_hint_label"/>
|
||||||
<widget name="enterprise_domain"/>
|
<widget name="enterprise_domain_combo"/>
|
||||||
<widget name="enterprise_domain_hint"/>
|
<widget name="enterprise_domain_hint_label"/>
|
||||||
<widget name="enterprise_login"/>
|
<widget name="enterprise_login_entry"/>
|
||||||
<widget name="enterprise_password"/>
|
<widget name="enterprise_password_entry"/>
|
||||||
<widget name="enterprise_hint"/>
|
<widget name="enterprise_hint_label"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkSizeGroup">
|
<object class="GtkSizeGroup">
|
||||||
<property name="mode">horizontal</property>
|
<property name="mode">horizontal</property>
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="account_type_standard"/>
|
<widget name="local_account_type_standard"/>
|
||||||
<widget name="account-type-admin"/>
|
<widget name="account_type_admin"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkSizeGroup">
|
<object class="GtkSizeGroup">
|
||||||
<property name="mode">horizontal</property>
|
<property name="mode">horizontal</property>
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="button1"/>
|
<widget name="add_button"/>
|
||||||
<widget name="button2"/>
|
<widget name="cancel_button"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkListStore" id="enterprise_realms">
|
<object class="GtkListStore" id="enterprise_realm_model">
|
||||||
<columns>
|
<columns>
|
||||||
<!-- column-name title -->
|
<!-- column-name title -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue