jdgeenen / gcontactsync

Synchronizes contacts & groups between Thunderbird or SeaMonkey and Google Contacts. Imports Facebook friends and Twitter contacts
Other
70 stars 15 forks source link

Statusbarpanel text fix for TB68 #143

Open dillenger opened 5 years ago

dillenger commented 5 years ago

Statusbarpanels are now toolbarbuttons with class statusbarpanel:

In Overlay.xul try:

@@ -107,10 +107,12 @@
                  oncommand="gContactSync.Sync.begin(true, null);"
                  class="gContactSync-Button toolbarbutton-1 chromeclass-toolbar-additional"/>

-  <statusbarpanel id="gContactSyncStatusText"
-                  onclick="gContactSync.showLog();"
-                  label="&initialStatus.label;"
-                  tooltiptext="&status.tooltip;"/>
+  <toolbarbutton id="gContactSyncStatusText"
+                 class="statusbarpanel" 
+                 onclick="gContactSync.showLog();"
+                 tooltiptext="&status.tooltip;"
+                 label="&initialStatus.label;"/>
+
   <menu id="gContactSyncMenu"
         label="&gContactSyncMenu.label;"
         accesskey="&gContactSyncMenu.accesskey;">

And in MessengerOverlay.xul try:

@@ -42,7 +42,9 @@
        Overlay.xul -->
   <!-- Add some text to the status bar -->
   <hbox id="status-bar" class="statusbar chromeclass-status">
-    <statusbarpanel id="gContactSyncStatusText" insertafter="totalMessageCount" hidden="true"/>
+    <toolbarbutton id="gContactSyncStatusText"
+                   class="statusbarpanel"
+                   insertafter="totalMessageCount"/>
   </hbox>
   <menubar id="mail-menubar">
     <menu id="gContactSyncMenu" insertbefore="tasksMenu"/>

And in ABOverlay.xul try:

@@ -43,9 +43,11 @@
   <script type="application/x-javascript"
           src="chrome://gcontactsync/content/ABOverlay.js"/>
   <!-- Add some text to the status bar -->
-  <statusbar id="status-bar" class="statusbar chromeclass-status">
-     <statusbarpanel id="gContactSyncStatusText" insertafter="statusText" hidden="true"/>
-  </statusbar>
+  <hbox id="status-bar" class="statusbar chromeclass-status">
+    <toolbarbutton id="gContactSyncStatusText"
+                   class="statusbarpanel"
+                   insertafter="totalMessageCount"/>
+  </hbox>
   <!-- Thunderbird AB -->
   <menubar id="mail-menubar">
    <menu id="gContactSyncMenu" insertbefore="tasksMenu"/>

There may be more but these fix the statusbar text in the main window and the address book.