users: Hide enterprise group in new users dialog
Otherwise we get a strange shadow at the bottom.
This commit is contained in:
parent
998db79732
commit
55072f54db
2 changed files with 6 additions and 4 deletions
|
@ -65,6 +65,7 @@ struct _CcAddUserDialog {
|
||||||
GtkLabel *enterprise_domain_hint;
|
GtkLabel *enterprise_domain_hint;
|
||||||
AdwActionRow *enterprise_domain_row;
|
AdwActionRow *enterprise_domain_row;
|
||||||
GtkImage *enterprise_domain_status_icon;
|
GtkImage *enterprise_domain_status_icon;
|
||||||
|
AdwPreferencesGroup *enterprise_group;
|
||||||
AdwPreferencesPage *enterprise_page;
|
AdwPreferencesPage *enterprise_page;
|
||||||
AdwPreferencesGroup *enterprise_login_group;
|
AdwPreferencesGroup *enterprise_login_group;
|
||||||
GtkEntry *enterprise_login_entry;
|
GtkEntry *enterprise_login_entry;
|
||||||
|
@ -1328,7 +1329,7 @@ on_realm_manager_created (GObject *source,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
/* Show the 'Enterprise Login' stuff, and update mode */
|
/* Show the 'Enterprise Login' stuff, and update mode */
|
||||||
gtk_widget_show (GTK_WIDGET (self->enterprise_button));
|
gtk_widget_show (GTK_WIDGET (self->enterprise_group));
|
||||||
mode_change (self, self->mode);
|
mode_change (self, self->mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1352,7 +1353,7 @@ on_realmd_disappeared (GDBusConnection *unused1,
|
||||||
|
|
||||||
clear_realm_manager (self);
|
clear_realm_manager (self);
|
||||||
gtk_list_store_clear (self->enterprise_realm_model);
|
gtk_list_store_clear (self->enterprise_realm_model);
|
||||||
gtk_widget_hide (GTK_WIDGET (self->enterprise_button));
|
gtk_widget_hide (GTK_WIDGET (self->enterprise_group));
|
||||||
mode_change (self, MODE_LOCAL);
|
mode_change (self, MODE_LOCAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1639,6 +1640,7 @@ cc_add_user_dialog_class_init (CcAddUserDialogClass *klass)
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_hint);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_hint);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_row);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_row);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_status_icon);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_domain_status_icon);
|
||||||
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_group);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_page);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_page);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login_group);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login_group);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login_entry);
|
gtk_widget_class_bind_template_child (widget_class, CcAddUserDialog, enterprise_login_entry);
|
||||||
|
|
|
@ -264,10 +264,10 @@
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwPreferencesGroup">
|
<object class="AdwPreferencesGroup" id="enterprise_group">
|
||||||
|
<property name="visible">False</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwActionRow" id="enterprise_button">
|
<object class="AdwActionRow" id="enterprise_button">
|
||||||
<property name="visible">False</property>
|
|
||||||
<property name="title" translatable="yes">Enterprise Login</property>
|
<property name="title" translatable="yes">Enterprise Login</property>
|
||||||
<property name="subtitle" translatable="yes">User accounts which are managed by a company or organisation.</property>
|
<property name="subtitle" translatable="yes">User accounts which are managed by a company or organisation.</property>
|
||||||
<property name="activatable">True</property>
|
<property name="activatable">True</property>
|
||||||
|
|
Loading…
Add table
Reference in a new issue