project: Remove all visible=True properties

Start the GTK4 port by cleaning up all visible=True properties,
since widgets are visible by default on GTK4.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 10:29:16 -03:00
parent c31640fa12
commit 5bec6e8fdc
6 changed files with 1 additions and 47 deletions

View File

@ -10,16 +10,12 @@
<property name="search-enabled">False</property> <property name="search-enabled">False</property>
<child> <child>
<object class="HdyPreferencesPage"> <object class="HdyPreferencesPage">
<property name="visible">True</property>
<child> <child>
<object class="HdyPreferencesGroup" id="group"> <object class="HdyPreferencesGroup" id="group">
<property name="visible">True</property>
<!-- Translated dynamically: --> <!-- Translated dynamically: -->
<property name="description">Restrict {username} from using the following installed applications.</property> <property name="description">Restrict {username} from using the following installed applications.</property>
<child> <child>
<object class="MctRestrictApplicationsSelector" id="selector"> <object class="MctRestrictApplicationsSelector" id="selector" />
<property name="visible">True</property>
</object>
</child> </child>
</object> </object>
</child> </child>

View File

@ -5,12 +5,10 @@
<template class="MctRestrictApplicationsSelector" parent="GtkBox"> <template class="MctRestrictApplicationsSelector" parent="GtkBox">
<child> <child>
<object class="GtkListBox" id="listbox"> <object class="GtkListBox" id="listbox">
<property name="visible">True</property>
<property name="selection-mode">none</property> <property name="selection-mode">none</property>
<child type="placeholder"> <child type="placeholder">
<object class="GtkLabel" id="placeholder"> <object class="GtkLabel" id="placeholder">
<property name="visible">True</property>
<property name="label" translatable="yes">No applications found to restrict.</property> <property name="label" translatable="yes">No applications found to restrict.</property>
</object> </object>
</child> </child>

View File

@ -5,13 +5,10 @@
<template class="MctUserControls" parent="GtkBin"> <template class="MctUserControls" parent="GtkBin">
<child> <child>
<object class="HdyPreferencesPage"> <object class="HdyPreferencesPage">
<property name="visible">True</property>
<child> <child>
<object class="HdyPreferencesGroup"> <object class="HdyPreferencesGroup">
<property name="visible">True</property>
<child> <child>
<object class="GtkLabel" id="description_label"> <object class="GtkLabel" id="description_label">
<property name="visible">True</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="xalign">0.0</property> <property name="xalign">0.0</property>
<property name="yalign">0.0</property> <property name="yalign">0.0</property>
@ -28,11 +25,9 @@
<!-- Application Usage Restrictions --> <!-- Application Usage Restrictions -->
<child> <child>
<object class="HdyPreferencesGroup"> <object class="HdyPreferencesGroup">
<property name="visible">True</property>
<property name="title" translatable="yes">Application Usage Restrictions</property> <property name="title" translatable="yes">Application Usage Restrictions</property>
<child> <child>
<object class="HdyActionRow" id="restrict_web_browsers_row"> <object class="HdyActionRow" id="restrict_web_browsers_row">
<property name="visible">True</property>
<property name="title" translatable="yes">Restrict _Web Browsers</property> <property name="title" translatable="yes">Restrict _Web Browsers</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="activatable_widget">restrict_web_browsers_switch</property> <property name="activatable_widget">restrict_web_browsers_switch</property>
@ -41,7 +36,6 @@
<property name="subtitle_lines">0</property> <property name="subtitle_lines">0</property>
<child> <child>
<object class="GtkSwitch" id="restrict_web_browsers_switch"> <object class="GtkSwitch" id="restrict_web_browsers_switch">
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">center</property> <property name="valign">center</property>
@ -56,7 +50,6 @@
<child> <child>
<object class="HdyActionRow" id="restrict_applications_row"> <object class="HdyActionRow" id="restrict_applications_row">
<property name="visible">True</property>
<property name="activatable">True</property> <property name="activatable">True</property>
<property name="title" translatable="yes">_Restrict Applications</property> <property name="title" translatable="yes">_Restrict Applications</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
@ -66,7 +59,6 @@
<property name="action-name">permissions.restrict-applications</property> <property name="action-name">permissions.restrict-applications</property>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property>
<property name="icon-name">go-next-symbolic</property> <property name="icon-name">go-next-symbolic</property>
</object> </object>
</child> </child>
@ -81,7 +73,6 @@
<!-- Software Installation Restrictions --> <!-- Software Installation Restrictions -->
<child> <child>
<object class="HdyPreferencesGroup"> <object class="HdyPreferencesGroup">
<property name="visible">True</property>
<property name="title" translatable="yes">Software Installation Restrictions</property> <property name="title" translatable="yes">Software Installation Restrictions</property>
<child> <child>
<object class="HdyActionRow" id="restrict_software_installation_row"> <object class="HdyActionRow" id="restrict_software_installation_row">
@ -94,7 +85,6 @@
<property name="subtitle_lines">0</property> <property name="subtitle_lines">0</property>
<child> <child>
<object class="GtkSwitch" id="restrict_software_installation_switch"> <object class="GtkSwitch" id="restrict_software_installation_switch">
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">center</property> <property name="valign">center</property>
@ -109,7 +99,6 @@
<child> <child>
<object class="HdyActionRow"> <object class="HdyActionRow">
<property name="visible">True</property>
<property name="title" translatable="yes">Application _Suitability</property> <property name="title" translatable="yes">Application _Suitability</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="activatable_widget">oars_button</property> <property name="activatable_widget">oars_button</property>
@ -117,7 +106,6 @@
<property name="subtitle_lines">0</property> <property name="subtitle_lines">0</property>
<child> <child>
<object class="GtkMenuButton" id="oars_button"> <object class="GtkMenuButton" id="oars_button">
<property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">center</property> <property name="valign">center</property>
@ -125,11 +113,9 @@
<property name="popover">oars_popover</property> <property name="popover">oars_popover</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">horizontal</property> <property name="orientation">horizontal</property>
<child> <child>
<object class="GtkLabel" id="oars_button_label"> <object class="GtkLabel" id="oars_button_label">
<property name="visible">True</property>
<property name="label"></property> <property name="label"></property>
<property name="expand">True</property> <property name="expand">True</property>
<property name="halign">start</property> <property name="halign">start</property>
@ -138,7 +124,6 @@
</child> </child>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property>
<property name="icon-name">pan-down-symbolic</property> <property name="icon-name">pan-down-symbolic</property>
<property name="icon-size">4</property><!-- GTK_ICON_SIZE_BUTTON --> <property name="icon-size">4</property><!-- GTK_ICON_SIZE_BUTTON -->
</object> </object>

View File

@ -8,12 +8,10 @@
<property name="reveal-child">True</property> <property name="reveal-child">True</property>
<child> <child>
<object class="GtkOverlay"> <object class="GtkOverlay">
<property name="visible">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="border_width">16</property> <property name="border_width">16</property>
<child> <child>
<object class="GtkStack" id="stack"> <object class="GtkStack" id="stack">
<property name="visible">True</property>
<property name="transition_duration">400</property> <property name="transition_duration">400</property>
<property name="transition_type">GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT</property> <property name="transition_type">GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT</property>
<style> <style>
@ -23,10 +21,8 @@
</child> </child>
<child type="overlay"> <child type="overlay">
<object class="GtkOverlay"> <object class="GtkOverlay">
<property name="visible">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property> <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="border_width">12</property> <property name="border_width">12</property>
<child> <child>
@ -39,7 +35,6 @@
</style> </style>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="icon-size">4</property> <property name="icon-size">4</property>
<property name="icon_name">go-previous-symbolic</property> <property name="icon_name">go-previous-symbolic</property>
@ -65,7 +60,6 @@
</style> </style>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="icon-size">4</property> <property name="icon-size">4</property>
<property name="icon_name">go-next-symbolic</property> <property name="icon_name">go-next-symbolic</property>
@ -86,17 +80,14 @@
</child> </child>
<child type="overlay"> <child type="overlay">
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="valign">GTK_ALIGN_END</property> <property name="valign">GTK_ALIGN_END</property>
<style> <style>
<class name="carousel-arrow-container"/> <class name="carousel-arrow-container"/>
</style> </style>
<child> <child>
<object class="GtkOverlay"> <object class="GtkOverlay">
<property name="visible">True</property>
<child> <child>
<object class="GtkBox" id="arrow"> <object class="GtkBox" id="arrow">
<property name="visible">True</property>
<property name="halign">GTK_ALIGN_END</property> <property name="halign">GTK_ALIGN_END</property>
<style> <style>
<class name="carousel-arrow"/> <class name="carousel-arrow"/>
@ -105,7 +96,6 @@
</child> </child>
<child type="overlay"> <child type="overlay">
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="halign">GTK_ALIGN_END</property> <property name="halign">GTK_ALIGN_END</property>
<style> <style>
<class name="carousel-inner-arrow"/> <class name="carousel-inner-arrow"/>

View File

@ -7,17 +7,14 @@
<property name="default-height">580</property> <property name="default-height">580</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="HdyHeaderBar" id="header"> <object class="HdyHeaderBar" id="header">
<property name="show-close-button">True</property> <property name="show-close-button">True</property>
<!-- Translators: This is the title of the main window --> <!-- Translators: This is the title of the main window -->
<property name="title" translatable="yes">Parental Controls</property> <property name="title" translatable="yes">Parental Controls</property>
<property name="visible">True</property>
<child> <child>
<object class="GtkMenuButton" id="primary_menu"> <object class="GtkMenuButton" id="primary_menu">
<property name="visible">True</property>
<property name="direction">none</property> <property name="direction">none</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="use-popover">True</property> <property name="use-popover">True</property>
@ -35,15 +32,12 @@
</child> </child>
<child> <child>
<object class="GtkStack" id="main_stack"> <object class="GtkStack" id="main_stack">
<property name="visible">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="border_width">0</property> <property name="border_width">0</property>
<child> <child>
<object class="MctUserSelector" id="user_selector"> <object class="MctUserSelector" id="user_selector">
<property name="visible">True</property>
<property name="user-manager">user_manager</property> <property name="user-manager">user_manager</property>
<property name="show-administrators">False</property> <property name="show-administrators">False</property>
<accessibility> <accessibility>
@ -57,7 +51,6 @@
</child> </child>
<child> <child>
<object class="MctUserControls" id="user_controls"> <object class="MctUserControls" id="user_controls">
<property name="visible">True</property>
<!-- Content is set in code; this string is just a placeholder --> <!-- Content is set in code; this string is just a placeholder -->
<property name="description">Its recommended that restrictions are set as part of an ongoing conversation with $name. Read guidance on what to consider.</property> <property name="description">Its recommended that restrictions are set as part of an ongoing conversation with $name. Read guidance on what to consider.</property>
<property name="height-request">270</property> <property name="height-request">270</property>
@ -75,13 +68,11 @@
<child> <child>
<object class="HdyStatusPage"> <object class="HdyStatusPage">
<property name="visible">True</property>
<property name="title" translatable="yes">Permission Required</property> <property name="title" translatable="yes">Permission Required</property>
<property name="description" translatable="yes">Permission is required to view and change user parental controls settings.</property> <property name="description" translatable="yes">Permission is required to view and change user parental controls settings.</property>
<property name="icon-name">org.freedesktop.MalcontentControl</property> <property name="icon-name">org.freedesktop.MalcontentControl</property>
<child> <child>
<object class="GtkLockButton" id="lock_button"> <object class="GtkLockButton" id="lock_button">
<property name="visible">True</property>
<property name="halign">center</property> <property name="halign">center</property>
<property name="can-default">True</property> <property name="can-default">True</property>
<property name="has-default">True</property> <property name="has-default">True</property>
@ -96,14 +87,12 @@
<child> <child>
<object class="HdyStatusPage"> <object class="HdyStatusPage">
<property name="visible">True</property>
<property name="icon-name">system-users-symbolic</property> <property name="icon-name">system-users-symbolic</property>
<property name="title" translatable="yes">No Standard User Accounts</property> <property name="title" translatable="yes">No Standard User Accounts</property>
<property name="description" translatable="yes">Parental controls can only be applied to standard user <property name="description" translatable="yes">Parental controls can only be applied to standard user
accounts. These can be created in the user settings.</property> accounts. These can be created in the user settings.</property>
<child> <child>
<object class="GtkButton" id="user_accounts_panel_button"> <object class="GtkButton" id="user_accounts_panel_button">
<property name="visible">True</property>
<property name="label" translatable="yes">_User Settings</property> <property name="label" translatable="yes">_User Settings</property>
<property name="halign">center</property> <property name="halign">center</property>
<property name="can-default">True</property> <property name="can-default">True</property>
@ -123,13 +112,11 @@
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<child type="center"> <child type="center">
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Loading…</property> <property name="label" translatable="yes">Loading…</property>
<attributes> <attributes>
<attribute name="scale" value="1.4"/> <attribute name="scale" value="1.4"/>
@ -149,7 +136,6 @@
<child> <child>
<object class="HdyStatusPage" id="error_page"> <object class="HdyStatusPage" id="error_page">
<property name="visible">True</property>
<property name="icon-name">dialog-error-symbolic</property> <property name="icon-name">dialog-error-symbolic</property>
</object> </object>
<packing> <packing>

View File

@ -5,7 +5,6 @@
<template class="MctUserSelector" parent="GtkBox"> <template class="MctUserSelector" parent="GtkBox">
<child> <child>
<object class="MctCarousel" id="carousel"> <object class="MctCarousel" id="carousel">
<property name="visible">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<signal name="item-activated" handler="carousel_item_activated"/> <signal name="item-activated" handler="carousel_item_activated"/>
</object> </object>