Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4803005

GTKStyle.CLASS_SPECIFIC_MAP has values requiring mapping of "_" to "-"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs

      The documentation for GTKStyle.getClassSpecificValue contains the following:

      * Note, the key used here should only contain the letters A-Z, a-z, the
      * digits 0-9, and the '-' character. If you need to request a value for
      * a key having characters outside this list, replace any other characters
      * with '-'. (ie. "default_border" should be "default-border").

      The following lines in GTKStyle, fail to do this mapping (ie. "_" to "-") to their second parameter. These second parameters are keys to be used for getClassSpecificValue. As a result of this missed mapping, the appropriate values will not be able to be fetched.

      CLASS_SPECIFIC_MAP.put("CheckBox.iconTextGap", "indicator_spacing");
      CLASS_SPECIFIC_MAP.put("Slider.thumbHeight", "slider_width");
      CLASS_SPECIFIC_MAP.put("Slider.trackBorder", "trough_border");
      CLASS_SPECIFIC_MAP.put("SplitPaneDivider.size", "handle_size");
      CLASS_SPECIFIC_MAP.put("Tree.expanderSize", "expander_size");
      CLASS_SPECIFIC_MAP.put("ScrollBar.thumbHeight", "slider_width");

            svioletsunw Scott Violet (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: