~tualatrix/ubuntu-tweak/trunk

« back to all changes in this revision

Viewing changes to ubuntutweak/settings/gconfsettings.py

  • Committer: Tualatrix Chou
  • Date: 2012-05-12 15:24:42 UTC
  • mfrom: (1842.1.3 ubuntu-tweak-0.7.x)
  • Revision ID: tualatrix@gmail.com-20120512152442-3dfde9gh5mqc8jv4
Fix Invalid values for resetting fonts and all other tests (Bug: #998411)

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        if not self.default:
109
109
            if self.key in self.schema_override:
110
110
                value = self.schema_override[self.key]
111
 
                if self.type != type(value):
 
111
                if self.type and self.type != type(value):
112
112
                    log.debug("get_schema_value: %s, the type is wrong, so convert force" % value)
113
113
                    return self.type(value)
114
114
                return value