[Bugs] #3744 sugar-toolkit-gtk3 UNSP: Pango.EllipsizeMode.MIDDLE constant

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Jul 4 07:21:48 EDT 2012


#3744: Pango.EllipsizeMode.MIDDLE constant
------------------------------------------+---------------------------------
    Reporter:  humitos                    |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit-gtk3         |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 Porting InfoSlicer to Gtk3 I found this error on the sugar-toolkit-gtk3:

 {{{
     Traceback (most recent call last):
     File "/home/humitos/sugar-jhbuild/install/bin/sugar-activity", line
 154, in <module>
     main()
     File "/home/humitos/sugar-jhbuild/install/bin/sugar-activity", line
 149, in main
     instance = create_activity_instance(activity_constructor,
 activity_handle)
     File "/home/humitos/sugar-jhbuild/install/bin/sugar-activity", line
 36, in create_activity_instance
     activity = constructor(handle)
     File "/home/humitos/Activities/InfoSlicer.activity/activity.py", line
 47, in __init__
     self.instance()
     File "/home/humitos/Activities/InfoSlicer.activity/activity.py", line
 56, in instance
     self.library = library.View(self)
     File "/home/humitos/Activities/InfoSlicer.activity/library.py", line
 49, in __init__
     _('Wiki'), _('Wiki articles'), False)
     File "/home/humitos/Activities/InfoSlicer.activity/bookview.py", line
 102, in __init__
     delete.set_tooltip(_('Delete current article'))
     File "/home/humitos/sugar-jhbuild/install/lib/python2.7/site-
 packages/sugar3/graphics/toolbutton.py", line 92, in set_tooltip
     self.palette = Palette(tooltip)
     File "/home/humitos/sugar-jhbuild/install/lib/python2.7/site-
 packages/sugar3/graphics/palette.py", line 104, in __init__
     self._label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
     AttributeError: type object 'EllipsizeMode' has no attribute 'MIDDLE'
 }}}

 On a Terminal Activity (inside sugar-jhbuild on Fedora 17):

 {{{
 >>> from gi.repository import Pango
 >>> Pango.EllipsizeMode.MIDDLE
 <enum PANGO_ELLIPSIZE_MIDDLE of type PangoEllipsizeMode>
 >>>
 }}}

 I had to comment out those lines (104 and 112 of palette.py) to be able to
 keep porting the activity.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3744>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list