[Bugs] #3905 sugar UNSP: View Source is broken

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Sep 14 10:13:33 EDT 2012


#3905: View Source is broken
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos  
        Type:  defect                     |         Status:  new     
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98    
   Component:  sugar                      |        Version:  0.97.x  
    Severity:  Blocker                    |       Keywords:          
Distribution:  OLPC                       |   Status_field:  Assigned
------------------------------------------+---------------------------------

Comment(by erikos):

 {{{
 diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py
 index bdc47fb..d8b5e02 100644
 --- a/src/jarabe/view/viewsource.py
 +++ b/src/jarabe/view/viewsource.py
 @@ -530,7 +530,7 @@ class SourceDisplay(Gtk.ScrolledWindow):
          self._buffer = GtkSource.Buffer()
          self._buffer.set_highlight_syntax(True)

 -        self._source_view = GtkSource.View(self._buffer)
 +        self._source_view = GtkSource.View(buffer=self._buffer)
          self._source_view.set_editable(False)
          self._source_view.set_cursor_visible(True)
          self._source_view.set_show_line_numbers(True)
 }}}

 Fixes it.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3905#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list