[gnome-bluetooth] lib: Remove all visible=TRUE properties



commit 6e1dc209058e1237c91ec88434ac487706a8bd8c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Oct 27 16:14:18 2021 -0300

    lib: Remove all visible=TRUE properties
    
    Widgets are visible by default now, we don't need these properties
    in the UI files anymore.

 lib/bluetooth-pairing-dialog.ui |  7 -------
 lib/bluetooth-settings-row.ui   |  4 ----
 lib/settings.ui                 | 30 ------------------------------
 3 files changed, 41 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.ui b/lib/bluetooth-pairing-dialog.ui
index 743d53e1..d9b1d6b8 100644
--- a/lib/bluetooth-pairing-dialog.ui
+++ b/lib/bluetooth-pairing-dialog.ui
@@ -9,7 +9,6 @@
         <property name="spacing">2</property>
         <child>
           <object class="GtkBox" id="pairing_dialog_box">
-            <property name="visible">True</property>
             <property name="margin_start">50</property>
             <property name="margin_end">50</property>
             <property name="margin_top">48</property>
@@ -17,7 +16,6 @@
             <property name="orientation">vertical</property>
             <child>
               <object class="GtkLabel" id="help_label">
-                <property name="visible">True</property>
                 <property name="label">Please enter the following PIN on 'Foobar':</property>
                 <property name="justify">center</property>
                 <property name="wrap">True</property>
@@ -27,16 +25,13 @@
             </child>
             <child>
               <object class="GtkNotebook" id="pin_notebook">
-                <property name="visible">True</property>
                 <property name="margin_top">24</property>
                 <property name="show_tabs">False</property>
                 <property name="show_border">False</property>
                 <child>
                   <object class="GtkAspectFrame" id="aspectframe1">
-                    <property name="visible">True</property>
                     <child>
                       <object class="GtkEntry" id="entry_pin">
-                        <property name="visible">True</property>
                         <property name="margin_start">25</property>
                         <property name="margin_end">25</property>
                         <property name="max_length">6</property>
@@ -54,7 +49,6 @@
                 </child>
                 <child>
                   <object class="GtkLabel" id="label_pin">
-                    <property name="visible">True</property>
                     <property name="label">123456</property>
                     <style>
                       <class name="pin-label"/>
@@ -63,7 +57,6 @@
                 </child>
                 <child>
                   <object class="GtkLabel" id="label_placeholder">
-                    <property name="visible">True</property>
                   </object>
                 </child>
               </object>
diff --git a/lib/bluetooth-settings-row.ui b/lib/bluetooth-settings-row.ui
index 269998f3..fe3806e8 100644
--- a/lib/bluetooth-settings-row.ui
+++ b/lib/bluetooth-settings-row.ui
@@ -3,17 +3,14 @@
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <template class="BluetoothSettingsRow" parent="GtkListBoxRow">
-    <property name="visible">True</property>
     <child>
       <object class="GtkBox">
-        <property name="visible">True</property>
         <property name="margin_start">20</property>
         <property name="margin_end">20</property>
         <property name="margin_top">16</property>
         <property name="margin_bottom">16</property>
         <child>
           <object class="GtkLabel" id="label">
-            <property name="visible">True</property>
             <property name="halign">start</property>
             <property name="valign">center</property>
             <property name="hexpand">True</property>
@@ -33,7 +30,6 @@
         </child>
         <child>
           <object class="GtkLabel" id="status">
-            <property name="visible">True</property>
             <property name="halign">end</property>
             <property name="valign">center</property>
             <property name="vexpand">True</property>
diff --git a/lib/settings.ui b/lib/settings.ui
index dcd27d31..97202af7 100644
--- a/lib/settings.ui
+++ b/lib/settings.ui
@@ -3,7 +3,6 @@
 <interface>
   <requires lib="gtk+" version="3.16"/>
   <object class="GtkBox" id="properties_vbox">
-    <property name="visible">True</property>
     <property name="margin_start">12</property>
     <property name="margin_end">12</property>
     <property name="margin_top">12</property>
@@ -11,12 +10,10 @@
     <property name="orientation">vertical</property>
     <child>
       <object class="GtkBox" id="box1">
-        <property name="visible">True</property>
         <property name="orientation">vertical</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkImage" id="image">
-            <property name="visible">True</property>
             <property name="margin_top">16</property>
             <property name="margin_bottom">16</property>
             <property name="icon_name">image-missing</property>
@@ -26,12 +23,10 @@
         </child>
         <child>
           <object class="GtkBox" id="box2">
-            <property name="visible">True</property>
             <property name="spacing">18</property>
             <property name="homogeneous">True</property>
             <child>
               <object class="GtkLabel" id="connection_label">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Connection</property>
                 <property name="xalign">1</property>
                 <property name="mnemonic_widget">switch_connection</property>
@@ -42,30 +37,25 @@
             </child>
             <child>
               <object class="GtkNotebook" id="connecting_notebook">
-                <property name="visible">True</property>
                 <property name="show_tabs">False</property>
                 <property name="show_border">False</property>
                 <child>
                   <object class="GtkSwitch" id="switch_connection">
-                    <property name="visible">True</property>
                     <property name="halign">start</property>
                   </object>
                 </child>
                 <child type="tab">
                   <object class="GtkLabel" id="label3">
-                    <property name="visible">True</property>
                     <property name="label">page 1</property>
                   </object>
                 </child>
                 <child>
                   <object class="GtkSpinner" id="connecting_spinner">
-                    <property name="visible">True</property>
                     <property name="halign">start</property>
                   </object>
                 </child>
                 <child type="tab">
                   <object class="GtkLabel" id="label9">
-                    <property name="visible">True</property>
                     <property name="label">page 2</property>
                   </object>
                 </child>
@@ -84,12 +74,10 @@
         </child>
         <child>
           <object class="GtkBox" id="box3">
-            <property name="visible">True</property>
             <property name="spacing">18</property>
             <property name="homogeneous">True</property>
             <child>
               <object class="GtkLabel" id="label4">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Paired</property>
                 <property name="xalign">1</property>
                 <property name="mnemonic_widget">paired_label</property>
@@ -100,7 +88,6 @@
             </child>
             <child>
               <object class="GtkLabel" id="paired_label">
-                <property name="visible">True</property>
                 <property name="label">Yes</property>
                 <property name="selectable">True</property>
                 <property name="xalign">0</property>
@@ -113,12 +100,10 @@
         </child>
         <child>
           <object class="GtkBox" id="box4">
-            <property name="visible">True</property>
             <property name="spacing">18</property>
             <property name="homogeneous">True</property>
             <child>
               <object class="GtkLabel" id="label5">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Type</property>
                 <property name="xalign">1</property>
                 <property name="mnemonic_widget">type_label</property>
@@ -129,7 +114,6 @@
             </child>
             <child>
               <object class="GtkLabel" id="type_label">
-                <property name="visible">True</property>
                 <property name="label">Keyboard</property>
                 <property name="selectable">True</property>
                 <property name="xalign">0</property>
@@ -142,12 +126,10 @@
         </child>
         <child>
           <object class="GtkBox" id="box5">
-            <property name="visible">True</property>
             <property name="spacing">18</property>
             <property name="homogeneous">True</property>
             <child>
               <object class="GtkLabel" id="label6">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Address</property>
                 <property name="xalign">1</property>
                 <property name="mnemonic_widget">address_label</property>
@@ -158,7 +140,6 @@
             </child>
             <child>
               <object class="GtkLabel" id="address_label">
-                <property name="visible">True</property>
                 <property name="label">00:00:00:00:00</property>
                 <property name="selectable">True</property>
                 <property name="xalign">0</property>
@@ -176,14 +157,12 @@
     </child>
     <child>
       <object class="GtkBox" id="vbox3">
-        <property name="visible">True</property>
         <property name="margin_bottom">6</property>
         <property name="orientation">vertical</property>
         <property name="spacing">6</property>
         <child>
           <object class="GtkButton" id="mouse_button">
             <property name="label" translatable="yes">_Mouse &amp; Touchpad Settings</property>
-            <property name="visible">True</property>
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
           </object>
@@ -191,7 +170,6 @@
         <child>
           <object class="GtkButton" id="sound_button">
             <property name="label" translatable="yes">_Sound Settings</property>
-            <property name="visible">True</property>
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
           </object>
@@ -199,7 +177,6 @@
         <child>
           <object class="GtkButton" id="keyboard_button">
             <property name="label" translatable="yes">_Keyboard Settings</property>
-            <property name="visible">True</property>
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
           </object>
@@ -214,7 +191,6 @@
         <child>
           <object class="GtkButton" id="delete_button">
             <property name="label" translatable="yes">_Remove Device</property>
-            <property name="visible">True</property>
             <property name="receives_default">True</property>
             <property name="use_underline">True</property>
           </object>
@@ -223,19 +199,15 @@
     </child>
     <child>
       <object class="GtkLabel" id="label7">
-        <property name="visible">True</property>
       </object>
     </child>
   </object>
   <object class="GtkScrolledWindow" id="scrolledwindow1">
-    <property name="visible">True</property>
     <property name="hscrollbar-policy">never</property>
     <child>
       <object class="GtkViewport" id="viewport1">
-        <property name="visible">True</property>
         <child>
           <object class="AdwClamp">
-            <property name="visible">True</property>
             <property name="maximum_size">600</property>
             <property name="tightening_threshold">400</property>
             <property name="margin_top">32</property>
@@ -244,12 +216,10 @@
             <property name="margin_end">12</property>
             <child>
               <object class="GtkBox" id="vbox_bluetooth">
-                <property name="visible">True</property>
                 <property name="spacing">12</property>
                 <property name="orientation">vertical</property>
                 <child>
                   <object class="GtkLabel" id="explanation-label">
-                    <property name="visible">True</property>
                     <property name="halign">start</property>
                     <property name="label">Visible as “Bastien's computer” and available for Bluetooth file 
transfers. Transferred files are placed in the &lt;a href="http://www.gnome.org"&gt;Downloads&lt;/a&gt; 
folder.</property>
                     <property name="use_markup">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]