[gnome-initial-setup] account: fully hide parental controls widgets if disabled
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] account: fully hide parental controls widgets if disabled
- Date: Sat, 15 Feb 2020 21:37:21 +0000 (UTC)
commit 1181e260fbf7a5f788c4a5aebaaf8e39583625f6
Author: Will Thompson <will willthompson co uk>
Date: Sat Feb 15 21:18:46 2020 +0000
account: fully hide parental controls widgets if disabled
Previously, the check button was hidden, but not its accompanying text.
Hide the entire box instead.
gnome-initial-setup/pages/account/gis-account-page-local.c | 4 +++-
gnome-initial-setup/pages/account/gis-account-page-local.ui | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.c
b/gnome-initial-setup/pages/account/gis-account-page-local.c
index dd8ed75..a4346fa 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.c
@@ -50,6 +50,7 @@ struct _GisAccountPageLocalPrivate
GtkWidget *header;
GtkWidget *fullname_entry;
GtkWidget *username_combo;
+ GtkWidget *enable_parental_controls_box;
GtkWidget *enable_parental_controls_check_button;
gboolean has_custom_username;
GtkWidget *username_explanation;
@@ -443,7 +444,7 @@ gis_account_page_local_constructed (GObject *object)
/* Disable parental controls if support is not compiled in. */
#ifndef HAVE_PARENTAL_CONTROLS
- gtk_widget_hide (priv->enable_parental_controls_check_button);
+ gtk_widget_hide (priv->enable_parental_controls_box);
#endif
priv->valid_name = FALSE;
@@ -595,6 +596,7 @@ gis_account_page_local_class_init (GisAccountPageLocalClass *klass)
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAccountPageLocal,
fullname_entry);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAccountPageLocal,
username_combo);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAccountPageLocal,
username_explanation);
+ gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAccountPageLocal,
enable_parental_controls_box);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GisAccountPageLocal,
enable_parental_controls_check_button);
object_class->constructed = gis_account_page_local_constructed;
diff --git a/gnome-initial-setup/pages/account/gis-account-page-local.ui
b/gnome-initial-setup/pages/account/gis-account-page-local.ui
index 8a668a1..ccfd7e1 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-local.ui
+++ b/gnome-initial-setup/pages/account/gis-account-page-local.ui
@@ -140,7 +140,7 @@
</packing>
</child>
<child>
- <object class="GtkBox">
+ <object class="GtkBox" id="enable_parental_controls_box">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]