~ubuntu-branches/ubuntu/gutsy/firefox/gutsy

« back to all changes in this revision

Viewing changes to toolkit/content/widgets/checkbox.xml

  • Committer: Bazaar Package Importer
  • Author(s): Ian Jackson
  • Date: 2006-10-10 18:49:32 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20061010184932-da75izt7y0e59afq
Tags: 1.99+2.0rc2+dfsg-0ubuntu1
* New upstream version 2.0rc2.
* Fix/workaround for epiphany GtkSocket lifetype crash:
  apply patch id=241087 from Mozilla Bugzilla #241535 to fix LP #63814.
* Change application name to `Firefox', as requested by mdz.
  Files changed:
    - browser/locales/en-US/chrome/branding/brand.dtd
    - browser/locales/en-US/chrome/branding/brand.properties;
  New values:
    - brandShortName and brandFullName: `Bon Echo' => `Firefox'
    - vendorShortName: `Mozilla' => `Ubuntu'
* Make preferences dialogue fit again (bah!).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
      <property name="accessible">
25
25
        <getter>
26
26
          <![CDATA[
27
 
            var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
28
 
            return accService.createXULCheckboxAccessible(this);
 
27
            try {
 
28
              var accService = Components.classes["@mozilla.org/accessibilityService;1"]
 
29
                                         .getService(Components.interfaces.nsIAccessibilityService);
 
30
              return accService.createXULCheckboxAccessible(this);
 
31
            }
 
32
            catch(ex) { /* no chrome privileges */ }
 
33
 
 
34
            return null;
29
35
          ]]>
30
36
        </getter>
31
37
      </property>
34
40
        <parameter name="aValue"/>
35
41
        <body>
36
42
        <![CDATA[
37
 
          var change = (aValue != (this.getAttribute('checked') == 'true'));
 
43
          var change = (aValue != (this.getAttributeNS('', 'checked') == 'true'));
38
44
          if (aValue)
39
 
            this.setAttribute('checked', 'true');
 
45
            this.setAttributeNS('', 'checked', 'true');
40
46
          else
41
 
            this.removeAttribute('checked');
 
47
            this.removeAttributeNS('', 'checked');
42
48
          if (change) {
43
49
            var event = document.createEvent('Events');
44
50
            event.initEvent('CheckboxStateChange', true, true);