Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4512 closed defect (fixed)

Read can't open txt files

Reported by: godiard Owned by: godiard
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Read Version: 0.98.x
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed


Something in the text view api has changed:

  File "/home/gonzalo/Activities/Read.activity/", line 689, in read_file
    self._load_document('file://' + self._tempfile)
  File "/home/gonzalo/Activities/Read.activity/", line 864, in _load_document
  File "/home/gonzalo/Activities/Read.activity/", line 91, in setup
    self.highlight_tag.set_property('underline', 'single')
ValueError: invalid literal for int() with base 10: 'single'

Attachments (1) (294 bytes) - added by godiard 11 years ago.
test case

Download all attachments as: .zip

Change History (3)

comment:1 Changed 11 years ago by godiard

  • Resolution set to fixed
  • Status changed from new to closed

Fixed on e5e69434d779caa7acc79870e61dec24df4537af

Need a new release for 13.2.0

Changed 11 years ago by godiard

test case

comment:2 Changed 11 years ago by godiard

The attached test, in sugar-build finish with error:

[gonzalo@localhost test]$ python 
3 6 4
Traceback (most recent call last):
  File "", line 7, in <module>
    tag.set_property('underline', 'single')
ValueError: invalid literal for int() with base 10: 'single'

But in F18 works ok.

If we replace the line:

tag.set_property('underline', 'single')


tag.set_property('underline', Pango.Underline.SINGLE)

works on F18 and in sugar-build

Note: See TracTickets for help on using tickets.