diff --git a/malcontent-control/application.c b/malcontent-control/application.c index 5f72bff..b327ad5 100644 --- a/malcontent-control/application.c +++ b/malcontent-control/application.c @@ -77,8 +77,7 @@ struct _MctApplication MctUserSelector *user_selector; MctUserControls *user_controls; GtkStack *main_stack; - GtkLabel *error_title; - GtkLabel *error_message; + HdyStatusPage *error_page; GtkLockButton *lock_button; GtkButton *user_accounts_panel_button; GtkLabel *help_label; @@ -210,8 +209,7 @@ mct_application_activate (GApplication *application) self->main_stack = GTK_STACK (gtk_builder_get_object (builder, "main_stack")); self->user_selector = MCT_USER_SELECTOR (gtk_builder_get_object (builder, "user_selector")); self->user_controls = MCT_USER_CONTROLS (gtk_builder_get_object (builder, "user_controls")); - self->error_title = GTK_LABEL (gtk_builder_get_object (builder, "error_title")); - self->error_message = GTK_LABEL (gtk_builder_get_object (builder, "error_message")); + self->error_page = HDY_STATUS_PAGE (gtk_builder_get_object (builder, "error_page")); self->lock_button = GTK_LOCK_BUTTON (gtk_builder_get_object (builder, "lock_button")); self->user_accounts_panel_button = GTK_BUTTON (gtk_builder_get_object (builder, "user_accounts_panel_button")); @@ -373,10 +371,10 @@ update_main_stack (MctApplication *self) if ((is_user_manager_loaded && act_user_manager_no_service (self->user_manager)) || self->permission_error != NULL) { - gtk_label_set_label (self->error_title, - _("Failed to load user data from the system")); - gtk_label_set_label (self->error_message, - _("Please make sure that the AccountsService is installed and enabled.")); + hdy_status_page_set_title (self->error_page, + _("Failed to load user data from the system")); + hdy_status_page_set_description (self->error_page, + _("Please make sure that the AccountsService is installed and enabled.")); new_page_name = "error"; new_focus_widget = NULL; diff --git a/malcontent-control/main.ui b/malcontent-control/main.ui index d9d5144..9c9e5a4 100644 --- a/malcontent-control/main.ui +++ b/malcontent-control/main.ui @@ -74,54 +74,18 @@ - + True - vertical - True - True - - + Permission Required + Permission is required to view and change user parental controls settings. + org.freedesktop.MalcontentControl + + True - vertical - 12 - 18 - - - True - Permission Required - - - - - - static - - - - - - - True - Permission is required to view and change user parental controls settings. - True - - - static - - - - - - - True - center - True - True - True - - 6 - - + center + True + True + True @@ -131,73 +95,24 @@ - + True - vertical - True - True - - - True - vertical - 12 - 18 - - - system-users-symbolic - 96 - True - - - static - - - - - - - True - No Standard User Accounts - - - - - - static - - - - - - - True - center - Parental controls can only be applied to standard user + system-users-symbolic + No Standard User Accounts + Parental controls can only be applied to standard user accounts. These can be created in the user settings. - True - - - static - - - - - - - True - _User Settings - center - True - True - True - True - - 6 - - - + + + True + _User Settings + center + True + True + True + True + @@ -233,38 +148,9 @@ - + True - vertical - True - True - - - True - vertical - 12 - - - True - - - - - - - - - True - - - - - - - - alert - - + dialog-error-symbolic error