[polari] js: Adjust to new visible-by-default behavior



commit 05f872ba0ec84350afa00525321fe0788a961dc2
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 25 23:08:42 2020 +0200

    js: Adjust to new visible-by-default behavior
    
    In GTK4, widgets are visible by default.
    
    It's a trivial change, but boy is it welcome.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/235>

 data/resources/connection-details.ui    |  5 -----
 data/resources/connection-properties.ui |  6 ------
 data/resources/entry-area.ui            | 14 +-------------
 data/resources/help-overlay.ui          | 19 -------------------
 data/resources/initial-setup-window.ui  | 18 ------------------
 data/resources/join-room-dialog.ui      | 24 ------------------------
 data/resources/main-window.ui           | 25 -------------------------
 data/resources/nick-popover.ui          |  4 ----
 data/resources/room-list-header.ui      | 20 +-------------------
 data/resources/room-list-row.ui         |  7 -------
 data/resources/server-room-list.ui      |  5 -----
 data/resources/user-details.ui          |  9 +--------
 data/resources/user-popover.ui          |  9 ---------
 src/appNotifications.js                 | 26 ++++++++------------------
 src/chatView.js                         |  5 +----
 src/connections.js                      | 10 ++--------
 src/roomStack.js                        | 11 +----------
 src/tabCompletion.js                    |  6 ------
 src/urlPreview.js                       |  5 +----
 src/userList.js                         | 21 ++++-----------------
 20 files changed, 20 insertions(+), 229 deletions(-)
---
diff --git a/data/resources/connection-details.ui b/data/resources/connection-details.ui
index 7b69c67c..c30d7768 100644
--- a/data/resources/connection-details.ui
+++ b/data/resources/connection-details.ui
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="Gjs_ConnectionDetails" parent="GtkGrid">
-    <property name="visible">True</property>
     <property name="row-spacing">6</property>
     <property name="column-spacing">12</property>
     <child>
@@ -69,7 +68,6 @@
     </child>
     <child>
       <object class="GtkLabel" id="nickname_label">
-        <property name="visible">True</property>
         <property name="halign">end</property>
         <property name="label" translatable="yes">_Nickname</property>
         <property name="use-underline">True</property>
@@ -82,7 +80,6 @@
     </child>
     <child>
       <object class="GtkEntry" id="nickEntry">
-        <property name="visible">True</property>
         <property name="hexpand">True</property>
         <property name="activates-default">True</property>
         <layout>
@@ -93,7 +90,6 @@
     </child>
     <child>
       <object class="GtkLabel" id="realname_label">
-        <property name="visible">True</property>
         <property name="halign">end</property>
         <property name="label" translatable="yes">_Real Name</property>
         <property name="use-underline">True</property>
@@ -106,7 +102,6 @@
     </child>
     <child>
       <object class="GtkEntry" id="realnameEntry">
-        <property name="visible">True</property>
         <property name="hexpand">True</property>
         <property name="activates-default">True</property>
         <property name="width-chars">30</property>
diff --git a/data/resources/connection-properties.ui b/data/resources/connection-properties.ui
index d8db205e..84c59b03 100644
--- a/data/resources/connection-properties.ui
+++ b/data/resources/connection-properties.ui
@@ -7,7 +7,6 @@
     <child type="action">
       <object class="GtkButton" id="cancelButton">
         <property name="label" translatable="yes">_Cancel</property>
-        <property name="visible">True</property>
         <property name="receives-default">True</property>
         <property name="use-underline">True</property>
       </object>
@@ -15,7 +14,6 @@
     <child type="action">
       <object class="GtkButton" id="applyButton">
         <property name="label" translatable="yes">_Apply</property>
-        <property name="visible">True</property>
         <property name="receives-default">True</property>
         <property name="use-underline">True</property>
         <property name="sensitive" bind-source="details"
@@ -28,7 +26,6 @@
         <property name="spacing">24</property>
         <child>
           <object class="Gjs_ConnectionDetails" id="details">
-            <property name="visible">True</property>
             <property name="margin-start">24</property>
             <property name="margin-end">24</property>
             <property name="margin-top">24</property>
@@ -37,13 +34,11 @@
         </child>
         <child>
           <object class="GtkBox" id="errorBox">
-            <property name="visible">True</property>
             <style>
               <class name="polari-error-information"/>
             </style>
             <child>
               <object class="GtkImage" id="image1">
-                <property name="visible">True</property>
                 <property name="icon-name">dialog-error-symbolic</property>
                 <property name="icon-size">large</property>
                 <property name="margin-start">24</property>
@@ -54,7 +49,6 @@
             </child>
             <child>
               <object class="GtkLabel" id="errorLabel">
-                <property name="visible">True</property>
                 <property name="vexpand">True</property>
                 <property name="wrap">True</property>
                 <property name="xalign">0</property>
diff --git a/data/resources/entry-area.ui b/data/resources/entry-area.ui
index 27a33f9d..15a96707 100644
--- a/data/resources/entry-area.ui
+++ b/data/resources/entry-area.ui
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="Gjs_EntryArea" parent="GtkStack">
-    <property name="visible">True</property>
     <property name="valign">end</property>
     <property name="transition-type">crossfade</property>
     <style>
@@ -13,7 +12,6 @@
         <property name="name">default</property>
         <property name="child">
           <object class="GtkBox">
-            <property name="visible">True</property>
             <property name="spacing">6</property>
             <property name="margin-start">6</property>
             <property name="margin-end">14</property>
@@ -21,7 +19,6 @@
             <property name="margin-bottom">6</property>
             <child>
               <object class="GtkToggleButton" id="nickButton">
-                <property name="visible">True</property>
                 <property name="receives-default">True</property>
                 <property name="focus-on-click">False</property>
                 <style>
@@ -30,7 +27,6 @@
                 </style>
                 <child>
                   <object class="GtkLabel" id="nickLabel">
-                    <property name="visible">True</property>
                     <property name="xalign">0</property>
                     <attributes>
                       <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
@@ -44,7 +40,6 @@
             </child>
             <child>
               <object class="Gjs_ChatEntry" id="chatEntry">
-                <property name="visible">True</property>
                 <property name="hexpand">True</property>
                 <property name="show-emoji-icon">True</property>
               </object>
@@ -58,16 +53,13 @@
         <property name="name">paste-confirmation</property>
         <property name="child">
           <object class="GtkBox" id="pasteBox">
-            <property name="visible">True</property>
             <property name="spacing">6</property>
             <style>
               <class name="background"/>
               <class name="polari-paste-confirmation"/>
             </style>
             <child>
-              <object class="GtkSpinner" id="uploadSpinner">
-                <property name="visible">True</property>
-              </object>
+              <object class="GtkSpinner" id="uploadSpinner"/>
             </child>
             <child>
               <object class="GtkLabel" id="uploadLabel">
@@ -91,19 +83,16 @@
             </child>
             <child>
               <object class="GtkRevealer">
-                <property name="visible">True</property>
                 <property name="transition-type">slide-left</property>
                 <property name="reveal-child" bind-source="confirmLabel"
                           bind-property="visible" bind-flags="sync-create"/>
                 <property name="child">
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="spacing">6</property>
                     <property name="margin-end">14</property>
                     <child>
                       <object class="GtkButton" id="cancelButton">
                         <property name="label" translatable="yes">_Cancel</property>
-                        <property name="visible">True</property>
                         <property name="receives-default">True</property>
                         <property name="use-underline">True</property>
                         <property name="sensitive" bind-source="confirmLabel"
@@ -113,7 +102,6 @@
                     <child>
                       <object class="GtkButton" id="pasteButton">
                         <property name="label" translatable="yes">_Paste</property>
-                        <property name="visible">True</property>
                         <property name="receives-default">True</property>
                         <property name="use-underline">True</property>
                         <property name="sensitive" bind-source="confirmLabel"
diff --git a/data/resources/help-overlay.ui b/data/resources/help-overlay.ui
index 198233bd..dd37bd40 100644
--- a/data/resources/help-overlay.ui
+++ b/data/resources/help-overlay.ui
@@ -4,67 +4,56 @@
     <property name="modal">True</property>
     <child>
       <object class="GtkShortcutsSection">
-        <property name="visible">True</property>
         <!-- The longer shortcut titles make GTK+ want to layout the groups
              vertically, but we really really want a horizontal layout -->
         <property name="max-height">10</property>
         <child>
           <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
             <property name="title" translatable="yes" context="shortcut window">General</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Join Room</property>
                 <property name="accelerator">&lt;Primary&gt;n</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Leave Room</property>
                 <property name="accelerator">&lt;Primary&gt;w</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Show Userlist</property>
                 <property name="accelerator">F9</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Show Emoji 
Picker</property>
                 <property name="accelerator">&lt;Primary&gt;e</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Show Help</property>
                 <property name="accelerator">F1</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Open Menu</property>
                 <property name="accelerator">F10</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Quit</property>
                 <property name="accelerator">&lt;Primary&gt;q</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Keyboard 
Shortcuts</property>
                 <property name="accelerator">&lt;Primary&gt;question</property>
               </object>
@@ -73,53 +62,45 @@
         </child>
         <child>
           <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
             <property name="title" translatable="yes" context="shortcut window">Navigation</property>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Next Room</property>
                 <property name="accelerator">&lt;Primary&gt;Page_Down</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Previous Room</property>
                 <property name="accelerator">&lt;Primary&gt;Page_Up</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Next Room with Unread 
Messages</property>
                 <property name="accelerator">&lt;Primary&gt;&lt;Shift&gt;Page_Down</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Previous Room with 
Unread Messages</property>
                 <property name="accelerator">&lt;Primary&gt;&lt;Shift&gt;Page_Up</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">First Room</property>
                 <property name="accelerator">&lt;Primary&gt;Home</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Last Room</property>
                 <property name="accelerator">&lt;Primary&gt;End</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">First – Ninth 
Room</property>
                 <property name="accelerator">&lt;Alt&gt;1...9</property>
               </object>
diff --git a/data/resources/initial-setup-window.ui b/data/resources/initial-setup-window.ui
index 28de42b6..05a136e0 100644
--- a/data/resources/initial-setup-window.ui
+++ b/data/resources/initial-setup-window.ui
@@ -8,17 +8,14 @@
     <property name="title" translatable="yes">Polari Setup</property>
     <child type="titlebar">
       <object class="GtkHeaderBar">
-        <property name="visible">True</property>
         <child>
           <object class="GtkButton" id="prevButton">
-            <property name="visible">True</property>
             <property name="use-underline">True</property>
             <property name="valign">center</property>
           </object>
         </child>
         <child type="end">
           <object class="GtkButton" id="nextButton">
-            <property name="visible">True</property>
             <property name="use-underline">True</property>
             <property name="valign">center</property>
           </object>
@@ -27,7 +24,6 @@
     </child>
     <child>
       <object class="GtkStack" id="contentStack">
-        <property name="visible">True</property>
         <property name="transition-type">slide-left-right</property>
         <property name="vexpand">True</property>
         <child>
@@ -35,14 +31,12 @@
             <property name="name">offline-hint</property>
             <property name="child">
               <object class="GtkGrid">
-                <property name="visible">True</property>
                 <property name="halign">center</property>
                 <property name="valign">center</property>
                 <property name="row_spacing">6</property>
                 <property name="column_spacing">18</property>
                 <child>
                   <object class="GtkImage">
-                    <property name="visible">True</property>
                     <property name="pixel_size">64</property>
                     <property name="icon_name">network-offline-symbolic</property>
                     <style>
@@ -55,7 +49,6 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="visible">True</property>
                     <property name="halign">start</property>
                     <property name="label" translatable="yes">Not connected</property>
                     <style>
@@ -68,7 +61,6 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="visible">True</property>
                     <property name="can-focus">False</property>
                     <property name="label" translatable="yes">Please connect to the internet to continue the 
setup.</property>
                     <property name="wrap">True</property>
@@ -93,7 +85,6 @@
             <property name="child">
               <object class="GtkBox">
                 <property name="orientation">vertical</property>
-                <property name="visible">True</property>
                 <property name="vexpand">True</property>
                 <property name="spacing">24</property>
                 <style>
@@ -101,13 +92,11 @@
                 </style>
                 <child>
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="orientation">vertical</property>
                     <property name="spacing">24</property>
                     <property name="halign">center</property>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="label" translatable="yes">Welcome to Polari</property>
                         <style>
                           <class name="polari-setup-title"/>
@@ -116,7 +105,6 @@
                     </child>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="max-width-chars">42</property>
                         <property name="wrap">True</property>
                         <property name="justify">center</property>
@@ -130,7 +118,6 @@
                 </child>
                 <child>
                   <object class="Gjs_ConnectionsList" id="connectionsList">
-                    <property name="visible">True</property>
                     <property name="vscrollbar-policy">never</property>
                     <property name="has-frame">True</property>
                     <property name="favorites-only">True</property>
@@ -146,20 +133,17 @@
             <property name="child">
               <object class="GtkBox">
                 <property name="orientation">vertical</property>
-                <property name="visible">True</property>
                 <property name="spacing">24</property>
                 <style>
                   <class name="polari-setup-page"/>
                 </style>
                 <child>
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="orientation">vertical</property>
                     <property name="halign">center</property>
                     <property name="spacing">24</property>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="label" translatable="yes">Welcome to Polari</property>
                         <style>
                           <class name="polari-setup-title"/>
@@ -168,7 +152,6 @@
                     </child>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="max-width-chars">60</property>
                         <property name="wrap">True</property>
                         <property name="justify">center</property>
@@ -182,7 +165,6 @@
                 </child>
                 <child>
                   <object class="Gjs_ServerRoomList" id="serverRoomList">
-                    <property name="visible">True</property>
                     <property name="vexpand">True</property>
                   </object>
                 </child>
diff --git a/data/resources/join-room-dialog.ui b/data/resources/join-room-dialog.ui
index d22daf47..9ec5ac32 100644
--- a/data/resources/join-room-dialog.ui
+++ b/data/resources/join-room-dialog.ui
@@ -9,10 +9,8 @@
     <property name="default-widget">joinButton</property>
     <child type="titlebar">
       <object class="GtkHeaderBar">
-        <property name="visible">True</property>
         <child>
           <object class="GtkButton" id="backButton">
-            <property name="visible">True</property>
             <property name="focus-on-click">False</property>
             <child>
               <object class='GtkShortcutController'>
@@ -27,7 +25,6 @@
             </child>
             <child>
               <object class="GtkImage">
-                <property name="visible">True</property>
                 <property name="valign">center</property>
                 <property name="icon-name">go-previous-symbolic</property>
               </object>
@@ -39,7 +36,6 @@
     <child type="action">
       <object class="GtkButton" id="cancelButton">
         <property name="label" translatable="yes">_Cancel</property>
-        <property name="visible">True</property>
         <property name="receives-default">True</property>
         <property name="use-underline">True</property>
       </object>
@@ -47,7 +43,6 @@
     <child type="action">
       <object class="GtkButton" id="joinButton">
         <property name="label" translatable="yes">_Join</property>
-        <property name="visible">True</property>
         <property name="receives-default">True</property>
         <property name="use-underline">True</property>
       </object>
@@ -58,14 +53,12 @@
         <property name="spacing">2</property>
         <child>
           <object class="GtkStack" id="mainStack">
-            <property name="visible">True</property>
             <property name="transition-type">slide-left-right</property>
             <child>
               <object class="GtkStackPage">
                 <property name="name">main</property>
                 <property name="child">
                   <object class="GtkGrid">
-                    <property name="visible">True</property>
                     <property name="margin-start">30</property>
                     <property name="margin-end">30</property>
                     <property name="margin-top">30</property>
@@ -74,7 +67,6 @@
                     <property name="column-spacing">12</property>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="halign">end</property>
                         <property name="label" translatable="yes">C_onnection</property>
                         <property name="use-underline">True</property>
@@ -83,13 +75,11 @@
                     </child>
                     <child>
                       <object class="GtkComboBoxText" id="connectionCombo">
-                        <property name="visible">True</property>
                         <property name="hexpand">True</property>
                       </object>
                     </child>
                     <child>
                       <object class="GtkButton" id="connectionButton">
-                        <property name="visible">True</property>
                         <property name="receives-default">True</property>
                         <property name="focus-on-click">False</property>
                         <child>
@@ -105,17 +95,14 @@
                         </child>
                         <child>
                           <object class="GtkBox">
-                            <property name="visible">True</property>
                             <property name="spacing">6</property>
                             <child>
                               <object class="GtkImage">
-                                <property name="visible">True</property>
                                 <property name="icon-name">list-add-symbolic</property>
                               </object>
                             </child>
                             <child>
                               <object class="GtkLabel">
-                                <property name="visible">True</property>
                                 <property name="label" translatable="yes">_Add Network</property>
                                 <property name="use-underline">True</property>
                                 <property name="mnemonic-widget">connectionButton</property>
@@ -127,7 +114,6 @@
                     </child>
                     <child>
                       <object class="Gjs_ServerRoomList" id="serverRoomList">
-                        <property name="visible">True</property>
                         <layout>
                           <property name="column-span">3</property>
                           <property name="column">0</property>
@@ -144,7 +130,6 @@
                 <property name="name">connection</property>
                 <property name="child">
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="margin-start">30</property>
                     <property name="margin-end">30</property>
                     <property name="margin-top">30</property>
@@ -153,7 +138,6 @@
                     <property name="spacing">18</property>
                     <child>
                       <object class="GtkStack" id="connectionStack">
-                        <property name="visible">True</property>
                         <property name="vexpand">True</property>
                         <property name="transition-type">crossfade</property>
                         <child>
@@ -161,7 +145,6 @@
                             <property name="name">predefined</property>
                             <property name="child">
                               <object class="GtkBox">
-                                <property name="visible">True</property>
                                 <property name="orientation">vertical</property>
                                 <style>
                                   <class name="linked"/>
@@ -169,13 +152,11 @@
                                 </style>
                                 <child>
                                   <object class="GtkBox">
-                                    <property name="visible">True</property>
                                     <style>
                                       <class name="polari-listbox-filterbar"/>
                                     </style>
                                     <child>
                                       <object class="GtkSearchEntry" id="filterEntry">
-                                        <property name="visible">True</property>
                                         <property name="hexpand">True</property>
                                         <property name="margin-start">60</property>
                                         <property name="margin-end">60</property>
@@ -187,7 +168,6 @@
                                 </child>
                                 <child>
                                   <object class="Gjs_ConnectionsList" id="connectionsList">
-                                    <property name="visible">True</property>
                                     <property name="vexpand">True</property>
                                   </object>
                                 </child>
@@ -200,18 +180,15 @@
                             <property name="name">custom</property>
                             <property name="child">
                               <object class="GtkBox">
-                                <property name="visible">True</property>
                                 <property name="orientation">vertical</property>
                                 <property name="spacing">24</property>
                                 <child>
                                   <object class="Gjs_ConnectionDetails" id="details">
-                                    <property name="visible">True</property>
                                   </object>
                                 </child>
                                 <child>
                                   <object class="GtkButton" id="addButton">
                                     <property name="label" translatable="yes">_Add</property>
-                                    <property name="visible">True</property>
                                     <property name="halign">end</property>
                                     <property name="receives-default">True</property>
                                     <property name="use-underline">True</property>
@@ -229,7 +206,6 @@
                     <child>
                       <object class="GtkToggleButton" id="customToggle">
                         <property name="label" translatable="yes">_Custom Network</property>
-                        <property name="visible">True</property>
                         <property name="receives-default">True</property>
                         <property name="use-underline">True</property>
                         <property name="focus-on-click">False</property>
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index 0f603f10..f1afd4f2 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -38,17 +38,14 @@
     <property name="icon-name">org.gnome.Polari</property>
     <child type="titlebar">
       <object class="GtkBox">
-        <property name="visible">True</property>
         <child>
           <object class="GtkHeaderBar" id="titlebarLeft">
-            <property name="visible">True</property>
             <property name="hexpand">False</property>
             <child type="title">
               <object class="GtkLabel"/>
             </child>
             <child type="start">
               <object class="GtkButton" id="joinButton">
-                <property name="visible">True</property>
                 <property name="halign">end</property>
                 <property name="valign">center</property>
                 <property name="action_name">app.show-join-dialog</property>
@@ -58,7 +55,6 @@
                 </style>
                 <child>
                   <object class="GtkImage">
-                    <property name="visible">True</property>
                     <property name="icon-name">list-add-symbolic</property>
                     <property name="icon-size">1</property>
                   </object>
@@ -70,7 +66,6 @@
             </child>
             <child type="end">
               <object class="GtkMenuButton">
-                <property name="visible">True</property>
                 <property name="halign">end</property>
                 <property name="valign">center</property>
                 <property name="menu-model">hamburgerMenu</property>
@@ -92,13 +87,11 @@
         </child>
         <child>
           <object class="GtkSeparator">
-            <property name="visible">True</property>
             <property name="orientation">vertical</property>
           </object>
         </child>
         <child>
           <object class="GtkHeaderBar" id="titlebarRight">
-            <property name="visible">True</property>
             <property name="hexpand">True</property>
             <!-- Use a custom title widget to enable markup for subtitles
                  (for URLs in channel topics); other than that, we want
@@ -108,17 +101,14 @@
                  its first child, but still consider the second one's size -->
             <child type="title">
               <object class="GtkStack">
-                <property name="visible">True</property>
                 <property name="margin-start">24</property>
                 <property name="margin-end">24</property>
                 <child>
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="orientation">vertical</property>
                     <property name="valign">center</property>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="single-line-mode">True</property>
                         <property name="ellipsize">end</property>
                         <property name="label" bind-source="Gjs_MainWindow"
@@ -152,11 +142,9 @@
                 </child>
                 <child>
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="orientation">vertical</property>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="single-line-mode">True</property>
                         <property name="ellipsize">end</property>
                         <style>
@@ -166,7 +154,6 @@
                     </child>
                     <child>
                       <object class="GtkLabel">
-                        <property name="visible">True</property>
                         <property name="single-line-mode">True</property>
                         <property name="ellipsize">end</property>
                         <property name="use-markup">True</property>
@@ -182,7 +169,6 @@
             </child>
             <child type="end">
               <object class="GtkToggleButton" id="showUserListButton">
-                <property name="visible">True</property>
                 <property name="focus-on-click">False</property>
                 <property name="action-name">app.user-list</property>
                 <property name="tooltip-text" translatable="yes">Show connected users</property>
@@ -198,18 +184,14 @@
     </child>
     <child>
       <object class="GtkGrid">
-        <property name="visible">True</property>
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkInfoBar" id="offlineInfoBar">
-            <property name="visible">True</property>
             <property name="revealed">False</property>
             <child>
               <object class="GtkBox">
-                <property name="visible">True</property>
                 <child>
                   <object class="GtkLabel">
-                    <property name="visible">True</property>
                     <property name="label" translatable="yes">Offline</property>
                     <attributes>
                       <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
@@ -218,7 +200,6 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="visible">True</property>
                     <property name="label" translatable="yes">Go online to chat and receive 
messages.</property>
                   </object>
                 </child>
@@ -231,12 +212,10 @@
         </child>
         <child>
           <object class="GtkRevealer" id="roomListRevealer">
-            <property name="visible">True</property>
             <property name="hexpand">False</property>
             <property name="transition-type">slide-right</property>
             <child>
               <object class="Gjs_FixedSizeFrame" id="roomSidebar">
-                <property name="visible">True</property>
                 <property name="hexpand">False</property>
                 <property name="width">200</property>
                 <style>
@@ -244,13 +223,11 @@
                 </style>
                 <child>
                   <object class="GtkScrolledWindow">
-                    <property name="visible">True</property>
                     <property name="hscrollbar-policy">never</property>
                     <property name="vexpand">True</property>
                     <property name="hexpand">True</property>
                     <child>
                       <object class="Gjs_RoomList">
-                        <property name="visible">True</property>
                         <property name="selection-mode">browse</property>
                         <style>
                           <class name="sidebar"/>
@@ -265,11 +242,9 @@
         </child>
         <child>
           <object class="GtkOverlay" id="overlay">
-            <property name="visible">True</property>
             <property name="vexpand">True</property>
             <child>
               <object class="Gjs_RoomStack" id="roomStack">
-                <property name="visible">True</property>
                 <property name="hhomogeneous">True</property>
                 <property name="vhomogeneous">True</property>
                 <property name="transition-type">crossfade</property>
diff --git a/data/resources/nick-popover.ui b/data/resources/nick-popover.ui
index fc53b466..2743c522 100644
--- a/data/resources/nick-popover.ui
+++ b/data/resources/nick-popover.ui
@@ -4,7 +4,6 @@
     <property name="position">top</property>
     <property name="child">
       <object class="GtkBox">
-        <property name="visible">True</property>
         <property name="margin-start">6</property>
         <property name="margin-end">6</property>
         <property name="margin-top">6</property>
@@ -13,7 +12,6 @@
         <property name="spacing">6</property>
         <child>
           <object class="GtkLabel">
-            <property name="visible">True</property>
             <property name="halign">start</property>
             <property name="hexpand">True</property>
             <property name="label" translatable="yes">Change nickname:</property>
@@ -21,14 +19,12 @@
         </child>
         <child>
           <object class="GtkEntry" id="nickEntry">
-            <property name="visible">True</property>
             <property name="activates-default">True</property>
           </object>
         </child>
         <child>
           <object class="GtkButton" id="changeButton">
             <property name="label" translatable="yes">_Change</property>
-            <property name="visible">True</property>
             <property name="receives-default">True</property>
             <property name="halign">end</property>
             <property name="hexpand">True</property>
diff --git a/data/resources/room-list-header.ui b/data/resources/room-list-header.ui
index 115de83c..af87dd18 100644
--- a/data/resources/room-list-header.ui
+++ b/data/resources/room-list-header.ui
@@ -18,21 +18,18 @@
         <property name="hexpand">True</property>
         <property name="max-width-chars">15</property>
         <property name="ellipsize">end</property>
-        <property name="visible">True</property>
       </object>
     </child>
     <child>
       <object class="GtkStack" id="iconStack">
         <property name="transition-type">crossfade</property>
         <property name="valign">center</property>
-        <property name="visible">True</property>
         <child>
           <object class="GtkStackPage">
             <property name="name">disconnected</property>
             <property name="child">
               <object class="GtkImage">
                 <property name="icon-name">network-offline-symbolic</property>
-                <property name="visible">True</property>
               </object>
             </property>
           </object>
@@ -43,7 +40,6 @@
             <property name="child">
               <object class="GtkImage">
                 <property name="icon_name">dialog-error-symbolic</property>
-                <property name="visible">True</property>
               </object>
             </property>
           </object>
@@ -52,9 +48,7 @@
           <object class="GtkStackPage">
             <property name="name">connecting</property>
             <property name="child">
-              <object class="GtkSpinner" id="spinner">
-                <property name="visible">True</property>
-              </object>
+              <object class="GtkSpinner" id="spinner"/>
             </property>
           </object>
         </child>
@@ -64,7 +58,6 @@
             <property name="child">
               <object class="GtkImage">
                 <property name="icon-name">dialog-password-symbolic</property>
-                <property name="visible">True</property>
               </object>
             </property>
           </object>
@@ -75,7 +68,6 @@
             <property name="child">
               <object class="GtkImage">
                 <property name="icon-name">pan-down-symbolic</property>
-                <property name="visible">True</property>
               </object>
             </property>
           </object>
@@ -84,7 +76,6 @@
     </child>
     <child>
       <object class="GtkSeparator">
-        <property name="visible">True</property>
         <layout>
           <property name="column">0</property>
           <property name="row">1</property>
@@ -101,14 +92,12 @@
         <property name="margin-end">12</property>
         <property name="margin-top">12</property>
         <property name="margin-bottom">12</property>
-        <property name="visible">True</property>
         <child>
           <object class="GtkLabel" id="popoverTitle">
             <property name="wrap">True</property>
             <property name="max-width-chars">30</property>
             <property name="width-chars">15</property>
             <property name="xalign">0</property>
-            <property name="visible">True</property>
             <property name="margin-start">6</property>
             <property name="margin-end">6</property>
           </object>
@@ -118,7 +107,6 @@
             <property name="wrap">True</property>
             <property name="max-width-chars">30</property>
             <property name="xalign">0</property>
-            <property name="visible">True</property>
             <property name="margin-start">6</property>
             <property name="margin-end">6</property>
           </object>
@@ -136,38 +124,32 @@
         </child>
         <child>
           <object class="GtkSeparator">
-            <property name="visible">True</property>
             <property name="margin-top">6</property>
             <property name="margin-bottom">6</property>
           </object>
         </child>
         <child>
           <object class="GtkModelButton" id="popoverConnect">
-            <property name="visible">True</property>
             <property name="text" translatable="yes">Connect</property>
           </object>
         </child>
         <child>
           <object class="GtkModelButton" id="popoverReconnect">
-            <property name="visible">True</property>
             <property name="text" translatable="yes">Reconnect</property>
           </object>
         </child>
         <child>
           <object class="GtkModelButton" id="popoverDisconnect">
-            <property name="visible">True</property>
             <property name="text" translatable="yes">Disconnect</property>
           </object>
         </child>
         <child>
           <object class="GtkModelButton" id="popoverRemove">
-            <property name="visible">True</property>
             <property name="text" translatable="yes">Remove</property>
           </object>
         </child>
         <child>
           <object class="GtkModelButton" id="popoverProperties">
-            <property name="visible">True</property>
             <property name="text" translatable="yes">Properties</property>
           </object>
         </child>
diff --git a/data/resources/room-list-row.ui b/data/resources/room-list-row.ui
index f0ff07db..403f3e3b 100644
--- a/data/resources/room-list-row.ui
+++ b/data/resources/room-list-row.ui
@@ -1,12 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="Gjs_RoomRow" parent="GtkListBoxRow">
-    <property name="visible">True</property>
     <property name="margin-bottom">4</property>
     <property name="focus-on-click">False</property>
     <child>
       <object class="GtkBox" id="box">
-        <property name="visible">True</property>
         <property name="margin-start">8</property>
         <property name="margin-end">8</property>
         <property name="margin-top">2</property>
@@ -21,7 +19,6 @@
         </child>
         <child>
           <object class="GtkLabel" id="roomLabel">
-            <property name="visible">True</property>
             <property name="halign">start</property>
             <property name="valign">baseline</property>
             <property name="hexpand">True</property>
@@ -30,14 +27,12 @@
         </child>
         <child>
           <object class="GtkStack" id="eventStack">
-            <property name="visible">True</property>
             <property name="transition-type">crossfade</property>
             <child>
               <object class="GtkStackPage">
                 <property name="name">connecting</property>
                 <property name="child">
                   <object class="GtkImage">
-                    <property name="visible">True</property>
                     <property name="valign">baseline</property>
                     <property name="icon-size">1</property>
                     <property name="icon-name">content-loading-symbolic</property>
@@ -53,11 +48,9 @@
                 <property name="name">messages</property>
                 <property name="child">
                   <object class="GtkAspectFrame">
-                    <property name="visible">True</property>
                     <property name="obey-child">False</property>
                     <property name="child">
                       <object class="GtkLabel" id="counter">
-                        <property name="visible">True</property>
                         <property name="width-chars">2</property>
                         <style>
                           <class name="pending-messages-count"/>
diff --git a/data/resources/server-room-list.ui b/data/resources/server-room-list.ui
index af70c9df..0910639b 100644
--- a/data/resources/server-room-list.ui
+++ b/data/resources/server-room-list.ui
@@ -29,13 +29,11 @@
     </style>
     <child>
       <object class="GtkBox">
-        <property name="visible">True</property>
         <style>
           <class name="polari-listbox-filterbar"/>
         </style>
         <child>
           <object class="GtkSearchEntry" id="filterEntry">
-            <property name="visible">True</property>
             <property name="hexpand">True</property>
             <property name="margin-start">60</property>
             <property name="margin-end">22</property>
@@ -47,7 +45,6 @@
         </child>
         <child>
           <object class="GtkSpinner" id="spinner">
-            <property name="visible">True</property>
             <property name="margin-end">22</property>
           </object>
         </child>
@@ -55,12 +52,10 @@
     </child>
     <child>
       <object class="GtkScrolledWindow">
-        <property name="visible">True</property>
         <property name="vexpand">True</property>
         <property name="hscrollbar-policy">never</property>
         <child>
           <object class="GtkTreeView" id="list">
-            <property name="visible">True</property>
             <property name="model">modelFilter</property>
             <property name="activate-on-single-click">True</property>
             <property name="fixed-height-mode">True</property>
diff --git a/data/resources/user-details.ui b/data/resources/user-details.ui
index 0829e0f0..e2d0a586 100644
--- a/data/resources/user-details.ui
+++ b/data/resources/user-details.ui
@@ -17,16 +17,12 @@
         <property name="margin-bottom">12</property>
         <property name="hexpand">True</property>
         <property name="halign">center</property>
-        <property name="visible">True</property>
         <child>
-          <object class="GtkSpinner" id="spinner">
-            <property name="visible">True</property>
-          </object>
+          <object class="GtkSpinner" id="spinner"/>
         </child>
         <child>
           <object class="GtkLabel" id="label1">
             <property name="label" translatable="yes">Loading details</property>
-            <property name="visible">True</property>
           </object>
         </child>
       </object>
@@ -37,7 +33,6 @@
         <property name="column-spacing">6</property>
         <property name="margin-end">18</property>
         <property name="hexpand">True</property>
-        <property name="visible">True</property>
         <child>
           <object class="GtkImage">
             <property name="icon-name">document-open-recent-symbolic</property>
@@ -92,7 +87,6 @@
         <child>
           <object class="GtkImage">
             <property name="icon-name">avatar-default-symbolic</property>
-            <property name="visible">True</property>
             <property name="halign">start</property>
             <style>
               <class name="dim-label" />
@@ -108,7 +102,6 @@
           <object class="GtkLabel" id="fullnameLabel">
             <property name="ellipsize">end</property>
             <property name="halign">start</property>
-            <property name="visible">True</property>
             <property name="margin-start">20</property>
             <property name="hexpand">True</property>
             <property name="use-markup">True</property>
diff --git a/data/resources/user-popover.ui b/data/resources/user-popover.ui
index 0ee860ce..4352897e 100644
--- a/data/resources/user-popover.ui
+++ b/data/resources/user-popover.ui
@@ -6,11 +6,9 @@
     <child>
       <object class="GtkBox">
         <property name="orientation">vertical</property>
-        <property name="visible">True</property>
         <child>
           <object class="GtkBox">
             <property name="orientation">horizontal</property>
-            <property name="visible">True</property>
             <property name="halign">fill</property>
             <property name="margin-start">9</property>
             <property name="margin-end">9</property>
@@ -19,7 +17,6 @@
             <child>
               <object class="GtkBox">
                 <property name="orientation">vertical</property>
-                <property name="visible">True</property>
                 <property name="halign">fill</property>
                 <child>
                   <object class="GtkLabel" id="nickLabel">
@@ -27,7 +24,6 @@
                     <property name="margin-top">0</property>
                     <property name="ellipsize">end</property>
                     <property name="max-width-chars">17</property>
-                    <property name="visible">True</property>
                     <style>
                       <class name="polari-user-popover-nick" />
                     </style>
@@ -38,7 +34,6 @@
                     <property name="halign">start</property>
                     <property name="margin-bottom">0</property>
                     <property name="use-markup">True</property>
-                    <property name="visible">True</property>
                     <style>
                       <class name="polari-user-popover-status" />
                       <class name="dim-label" />
@@ -52,16 +47,13 @@
                 <property name="hexpand">True</property>
                 <property name="halign">end</property>
                 <property name="valign">center</property>
-                <property name="visible">True</property>
                 <property name="visible" bind-source="notifyButton"
                           bind-property="sensitive"
                           bind-flags="sync-create"/>
                 <child>
                   <object class="GtkImage">
                     <property name="icon-name">polari-user-notify-symbolic</property>
-                    <property name="visible">True</property>
                     <property name="halign">center</property>
-                    <property name="visible">True</property>
                   </object>
                 </child>
               </object>
@@ -70,7 +62,6 @@
         </child>
         <child>
           <object class="Gjs_UserDetails" id="userDetails">
-            <property name="visible">True</property>
             <property name="notifications-enabled" bind-source="notifyButton"
                       bind-property="active"
                       bind-flags="sync-create"/>
diff --git a/src/appNotifications.js b/src/appNotifications.js
index a88fb5cc..d3cc04b9 100644
--- a/src/appNotifications.js
+++ b/src/appNotifications.js
@@ -35,30 +35,28 @@ class MessageNotification extends AppNotification {
 
         GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, TIMEOUT, this.close.bind(this));
 
-        this._box = new Gtk.Box({ spacing: 12, visible: true });
+        this._box = new Gtk.Box({ spacing: 12 });
 
         if (iconName)
-            this._box.append(new Gtk.Image({ icon_name: iconName, visible: true }));
+            this._box.append(new Gtk.Image({ icon_name: iconName }));
 
         this._box.append(new Gtk.Label({
             label,
             hexpand: true,
             ellipsize: Pango.EllipsizeMode.END,
-            visible: true,
         }));
 
-        let closeButton = new Gtk.Button({ has_frame: false, visible: true });
-        closeButton.image = new Gtk.Image({ icon_name: 'window-close-symbolic', visible: true });
+        let closeButton = new Gtk.Button({ has_frame: false });
+        closeButton.image = new Gtk.Image({ icon_name: 'window-close-symbolic' });
         closeButton.connect('clicked', this.close.bind(this));
         this._box.pack_end(closeButton, false, false, 0);
 
         this.set_child(this._box);
-        this.show();
     }
 
 
     addButton(label, callback) {
-        let button = new Gtk.Button({ label, visible: true });
+        let button = new Gtk.Button({ label });
         button.connect('clicked', () => {
             if (callback)
                 callback();
@@ -118,11 +116,9 @@ class SimpleOutput extends CommandOutputNotification {
         let label = new Gtk.Label({
             label: text,
             vexpand: true,
-            visible: true,
             wrap: true,
         });
         this.set_child(label);
-        this.show();
     }
 });
 
@@ -139,9 +135,8 @@ class GridOutput extends CommandOutputNotification {
             column_homogeneous: true,
             row_spacing: 6,
             column_spacing: 18,
-            visible: true,
         });
-        grid.attach(new Gtk.Label({ label: header, visible: true }), 0, 0, numCols, 1);
+        grid.attach(new Gtk.Label({ label: header }), 0, 0, numCols, 1);
 
         let row = 1;
         for (let i = 0; i < numRows; i++) {
@@ -149,13 +144,12 @@ class GridOutput extends CommandOutputNotification {
                 let item = items[i + j * numRows];
                 if (!item)
                     continue;
-                let w = new Gtk.Label({ label: item, visible: true });
+                let w = new Gtk.Label({ label: item });
                 grid.attach(w, j, row, 1, 1);
             }
             row++;
         }
         this.set_child(grid);
-        this.show();
     }
 });
 
@@ -172,7 +166,7 @@ class NotificationQueue extends Gtk.Frame {
 
         this._grid = new Gtk.Grid({
             orientation: Gtk.Orientation.VERTICAL,
-            row_spacing: 6, visible: true,
+            row_spacing: 6,
         });
         this.set_child(this._grid);
     }
@@ -240,7 +234,6 @@ export const MessageInfoBar = GObject.registerClass({
             label: `<b>${this._title}</b>`,
             use_markup: true,
             wrap: true,
-            visible: true,
         });
         box.append(this._titleLabel);
 
@@ -249,13 +242,10 @@ export const MessageInfoBar = GObject.registerClass({
             valign: Gtk.Align.CENTER,
             label: this._subtitle,
             ellipsize: Pango.EllipsizeMode.END,
-            visible: true,
         });
         box.append(this._subtitleLabel);
 
         this.connect('response', () => (this.revealed = false));
-
-        box.show();
     }
 
     get title() {
diff --git a/src/chatView.js b/src/chatView.js
index 252d171a..6e7667cd 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -352,7 +352,6 @@ export default GObject.registerClass({
             right_margin: MARGIN,
             indent_width_chars: MAX_NICK_CHARS,
             indent_spacing: NICK_SPACING,
-            visible: true,
         });
         this._view.bind_property_full('indent',
             this._view, 'left-margin',
@@ -360,7 +359,6 @@ export default GObject.registerClass({
             (v, source) => [true, MARGIN - source],
             null);
         this.set_child(this._view);
-        this.show();
 
         this._createTags();
 
@@ -908,7 +906,6 @@ export default GObject.registerClass({
     _showLoadingIndicator() {
         let indicator = new Gtk.Image({
             icon_name: 'content-loading-symbolic',
-            visible: true,
         });
         indicator.add_css_class('dim-label');
 
@@ -1409,7 +1406,7 @@ export default GObject.registerClass({
                 url.name, tags.concat(this._lookupTag('url'), tag));
 
             if (GLib.uri_parse_scheme(url.url).startsWith('http'))
-                previews.push(new URLPreview({ uri: url.url, visible: true }));
+                previews.push(new URLPreview({ uri: url.url }));
 
             pos = url.pos + url.name.length;
         }
diff --git a/src/connections.js b/src/connections.js
index c64ab19d..7d4144cb 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -48,11 +48,10 @@ class ConnectionRow extends Gtk.ListBoxRow {
             margin_end: 12,
             margin_top: 12,
             margin_bottom: 12,
-            visible: true,
         });
         this.set_child(box);
 
-        box.append(new Gtk.Label({ label: name, halign: Gtk.Align.START, visible: true }));
+        box.append(new Gtk.Label({ label: name, halign: Gtk.Align.START }));
 
         let insensitiveDesc = new Gtk.Label({
             label: _('Already added'),
@@ -62,8 +61,6 @@ class ConnectionRow extends Gtk.ListBoxRow {
         });
         box.append(insensitiveDesc);
 
-        this.show();
-
         this.bind_property('sensitive',
             insensitiveDesc, 'visible',
             GObject.BindingFlags.SYNC_CREATE |
@@ -94,7 +91,7 @@ export const ConnectionsList = GObject.registerClass({
 
         this.hscrollbar_policy = Gtk.PolicyType.NEVER;
 
-        this._list = new Gtk.ListBox({ visible: true });
+        this._list = new Gtk.ListBox();
         this._list.connect('row-activated', this._onRowActivated.bind(this));
         this.set_child(this._list);
 
@@ -109,16 +106,13 @@ export const ConnectionsList = GObject.registerClass({
             halign: Gtk.Align.CENTER,
             valign: Gtk.Align.CENTER,
             orientation: Gtk.Orientation.VERTICAL,
-            visible: true,
         });
         placeholder.append(new Gtk.Image({
             icon_name: 'edit-find-symbolic',
             pixel_size: 115,
-            visible: true,
         }));
         placeholder.append(new Gtk.Label({
             label: _('No results.'),
-            visible: true,
         }));
 
         placeholder.add_css_class('dim-label');
diff --git a/src/roomStack.js b/src/roomStack.js
index 7f83b543..f3828da2 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -232,14 +232,12 @@ class ChatPlaceholder extends Gtk.Overlay {
             icon_name: 'org.gnome.Polari-symbolic',
             pixel_size: 96, halign: Gtk.Align.END,
             margin_end: 14,
-            visible: true,
         });
 
         let title = new Gtk.Label({
             use_markup: true,
             halign: Gtk.Align.START,
             margin_start: 14,
-            visible: true,
         });
         title.label = `<span letter_spacing="4500">${_('Polari')}<${'/'}span>`;
         title.add_css_class('polari-background-title');
@@ -248,7 +246,6 @@ class ChatPlaceholder extends Gtk.Overlay {
             label: _('Join a room using the + button.'),
             halign: Gtk.Align.CENTER, wrap: true,
             margin_top: 24, use_markup: true,
-            visible: true,
         });
         description.add_css_class('polari-background-description');
 
@@ -263,16 +260,13 @@ class ChatPlaceholder extends Gtk.Overlay {
             hexpand: true,
             vexpand: true,
             valign: Gtk.Align.CENTER,
-            visible: true,
         });
         grid.add_css_class('polari-background');
         grid.attach(image, 0, 0, 1, 1);
         grid.attach(title, 1, 0, 1, 1);
         grid.attach(description, 0, 1, 2, 1);
-        inputPlaceholder.show();
         this.set_child(grid);
         this.add_overlay(inputPlaceholder);
-        this.show();
     }
 });
 
@@ -281,7 +275,7 @@ class RoomView extends Gtk.Overlay {
     _init(room, sizeGroup) {
         super._init({ name: `RoomView ${room.display_name}` });
 
-        let box = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, visible: true });
+        let box = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL });
         this.set_child(box);
 
         if (room.type === Tp.HandleType.CONTACT)
@@ -295,7 +289,6 @@ class RoomView extends Gtk.Overlay {
         this._entryArea = new EntryArea({
             room,
             sensitive: false,
-            visible: true,
         });
         box.append(this._entryArea);
 
@@ -313,8 +306,6 @@ class RoomView extends Gtk.Overlay {
         this._view.connect('file-dropped', (view, file) => {
             this._entryArea.pasteFile(file);
         });
-
-        this.show();
     }
 
     set inputSensitive(sensitive) {
diff --git a/src/tabCompletion.js b/src/tabCompletion.js
index 6c53bf67..6cbaaeec 100644
--- a/src/tabCompletion.js
+++ b/src/tabCompletion.js
@@ -46,16 +46,12 @@ export default class TabCompletion {
                 halign: Gtk.Align.START,
                 margin_start: 6,
                 margin_end: 6,
-                visible: true,
             }));
-            row.show();
             this._list.append(row);
         }
     }
 
     _showPopup() {
-        this._list.show();
-
         const delegate = this._entry.get_delegate();
         const [extents] = delegate.compute_cursor_extents(this._startPos);
         const [, bounds] = this._entry.compute_bounds(delegate);
@@ -93,9 +89,7 @@ export default class TabCompletion {
                     halign: Gtk.Align.START,
                     margin_start: 6,
                     margin_end: 6,
-                    visible: true,
                 }));
-                row.show();
                 widgetMap.set(nick, row);
             }
         }
diff --git a/src/urlPreview.js b/src/urlPreview.js
index 8df57254..5f7931e4 100644
--- a/src/urlPreview.js
+++ b/src/urlPreview.js
@@ -119,16 +119,13 @@ export default GObject.registerClass({
         this.add_css_class('background');
 
         this._imageLoaded = false;
-        this._image = new Gtk.Image({
-            visible: true,
-        });
+        this._image = new Gtk.Image();
         this._image.add_css_class('dim-label');
         this.append(this._image);
 
         this._label = new Gtk.Label({
             halign: Gtk.Align.START,
             ellipsize: Pango.EllipsizeMode.END,
-            visible: true,
         });
         this._label.add_css_class('dim-label');
         this.append(this._label);
diff --git a/src/userList.js b/src/userList.js
index 356a0ae7..93cde392 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -47,14 +47,13 @@ class UserListPopover extends Gtk.Popover {
             margin_end: 6,
             margin_top: 6,
             margin_bottom: 6,
-            visible: true,
         });
         this.set_child(this._box);
 
-        this._revealer = new Gtk.Revealer({ visible: true });
+        this._revealer = new Gtk.Revealer();
         this._box.append(this._revealer);
 
-        this._entry = new Gtk.SearchEntry({ visible: true });
+        this._entry = new Gtk.SearchEntry();
         this._entry.connect('search-changed', this._updateFilter.bind(this));
         this._revealer.set_child(this._entry);
     }
@@ -344,8 +343,6 @@ export const UserPopover = GObject.registerClass({
         this.connect('destroy', () => {
             this.nickname = null;
         });
-
-        this.show();
     }
 
     set nickname(nickname) {
@@ -461,7 +458,7 @@ class UserListRow extends Gtk.ListBoxRow {
     }
 
     _createWidget() {
-        let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, visible: true });
+        let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL });
         this.set_child(vbox);
 
         let hbox = new Gtk.Box({
@@ -470,7 +467,6 @@ class UserListRow extends Gtk.ListBoxRow {
             margin_top: 4,
             margin_bottom: 4,
             spacing: 4,
-            visible: true,
         });
         this._arrow = new Gtk.Image({
             icon_name: 'pan-end-symbolic',
@@ -483,16 +479,13 @@ class UserListRow extends Gtk.ListBoxRow {
             use_markup: true,
             ellipsize: Pango.EllipsizeMode.END,
             max_width_chars: MAX_USERS_WIDTH_CHARS,
-            visible: true,
         });
         hbox.append(this._label);
         hbox.append(this._arrow);
         vbox.append(hbox);
 
-        this._revealer = new Gtk.Revealer({ reveal_child: false, visible: true });
+        this._revealer = new Gtk.Revealer({ reveal_child: false });
         vbox.append(this._revealer);
-
-        this.show();
     }
 
     _ensureDetails() {
@@ -574,16 +567,13 @@ class UserList extends Gtk.ScrolledWindow {
             margin_start: 32,
             margin_end: 32,
             spacing: 6,
-            visible: true,
         });
         placeholder.append(new Gtk.Image({
             icon_name: 'edit-find-symbolic',
             pixel_size: 64,
-            visible: true,
         }));
         placeholder.append(new Gtk.Label({
             label: _('No Results'),
-            visible: true,
         }));
 
         placeholder.add_css_class('placeholder');
@@ -629,9 +619,6 @@ class UserList extends Gtk.ScrolledWindow {
             this._roomSignals.push(room.connect(signal.name, signal.handler));
         });
         this._onChannelChanged(room);
-
-        this._list.show();
-        this.show();
     }
 
     get numRows() {


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