Changeset 208

Show
Ignore:
Timestamp:
12/26/06 11:30:01 (2 years ago)
Author:
t-bone
Message:

Refs #8

  • Detect whether running in Firefox 1.x or 2.x and display the appropriate label. ("Go" became "History".)
Location:
extension/tinymenu
Files:
2 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • extension/tinymenu/content/tinymenu-options.js

    r193 r208  
    55    var appInfo=Components.classes["@mozilla.org/xre/app-info;1"] 
    66        .getService(Components.interfaces.nsIXULAppInfo); 
    7      
     7    dump('Detected app id: '+appInfo.ID+'\n'); 
     8    dump('n: '+navigator+'\n'); 
     9    for (i in navigator) { dump(i+': '+navigator[i]+'\n'); } 
     10 
    811    if (FIREFOX_ID==appInfo.ID) { 
    912        // firefox 
    10         document.loadOverlay('chrome://tinymenu/content/tinymenu-options-ff.xul', overlayObserver);  
    1113 
     14        // the label changed, so show the proper one 
     15        var versionChecker=Components 
     16            .classes["@mozilla.org/xpcom/version-comparator;1"] 
     17            .getService(Components.interfaces.nsIVersionComparator); 
     18        if (versionChecker.compare(appInfo.version, "2.0") >= 0) { 
     19            document.loadOverlay('chrome://tinymenu/content/tinymenu-options-ff2.xul', overlayObserver); 
     20        } else { 
     21            document.loadOverlay('chrome://tinymenu/content/tinymenu-options-ff1.xul', overlayObserver); 
     22        } 
     23         
     24        // the label changed, but not the ID, so always these IDs for firefox 
    1225        tinymenu.menuIds=[ 
    1326            'file-menu', 'edit-menu', 'view-menu', 'go-menu', 
  • extension/tinymenu/install.rdf

    r191 r208  
    44        <em:id>{d33c2f7c-b1e6-4d46-ab0e-be1f6d05c904}</em:id> 
    55        <em:name>Tiny Menu</em:name> 
    6         <em:version>1.4</em:version> 
     6        <em:version>1.4.1</em:version> 
    77        <em:description>Replace the standard menu bar with a tiny menu popup.</em:description> 
    88        <em:creator>Anthony Lieuallen</em:creator>