Bug 1484965 - Remove nobuttons binding. r=florian,Paenglab DONTBUILD
authorArshad Khan <arshdkhn1@gmail.com>
Tue, 04 Sep 2018 13:27:15 +0530
changeset 33084 7953345b93f62b54f93d4d8bcbc5464c9faa7c78
parent 33083 d1bb256c78f7a83615b4750f27c9bc62d9f83e2f
child 33085 be7897269d30e94b5dd1506f4dd14476491d1789
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersflorian, Paenglab
bugs1484965
Bug 1484965 - Remove nobuttons binding. r=florian,Paenglab DONTBUILD
chat/content/account.xml
chat/content/accounts.css
--- a/chat/content/account.xml
+++ b/chat/content/account.xml
@@ -342,11 +342,9 @@
         <body>
         <![CDATA[
           this.activeButton.click();
         ]]>
         </body>
       </method>
     </implementation>
   </binding>
-
-  <binding id="nobuttons" extends="xul:hbox"/>
 </bindings>
--- a/chat/content/accounts.css
+++ b/chat/content/accounts.css
@@ -1,23 +1,24 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 richlistitem {
   -moz-binding: url("chrome://chat/content/account.xml#account");
 }
 
-richlistitem .account-buttons {
-  -moz-binding: url("chrome://chat/content/account.xml#nobuttons");
-}
 richlistitem[selected="true"] .account-buttons {
   -moz-binding: url("chrome://chat/content/account.xml#buttons");
 }
 
+richlistitem:not([selected="true"]) .account-buttons {
+  display: none;
+}
+
 richlistitem:not([state="connected"]) .connected,
 richlistitem:not([state="connecting"]) .connecting,
 richlistitem:not([state="disconnected"]) .disconnected,
 richlistitem:not([state="disconnecting"]) .disconnecting,
 richlistitem:not([error="true"]) .error,
 richlistitem:not([error="true"]) .errorIcon,
 richlistitem:not([state="disconnected"]) .error,
 richlistitem[error="true"] .disconnected,