[Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

lionel at olpc-france.org lionel at olpc-france.org
Sun Jun 9 03:46:39 EDT 2013


 

Hi all,

 

I’m trying to port an activity to Gtk3 on the latest sugar-build.

I’ve imported all sugar3.*. 

I’ve substituted all gtk to gi.repository import gtk.

BTW I’m stick on a strange error on EllipsizeMode in Pango (see below).

Does I miss something?

 

                Lionel.

 

 

 

/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning:
g_boxed_type_register_static: assertion `g_type_from_name (name) == 0'
failed

  import gobject._gobject

Traceback (most recent call last):

  File "/home/fedora/sugar-build/build/out/install/bin/sugar-activity", line
161, in <module>

    main()

  File "/home/fedora/sugar-build/build/out/install/bin/sugar-activity", line
156, in main

    instance = create_activity_instance(activity_constructor,
activity_handle)

  File "/home/fedora/sugar-build/build/out/install/bin/sugar-activity", line
42, in create_activity_instance

   activity = constructor(handle)

  File "/home/fedora/Activities/Roots.activity/activity.py", line 73, in
__init__

    activity_button = ActivityToolbarButton(self)

  File
"/home/fedora/sugar-build/build/out/install/lib/python2.7/site-packages/suga
r3/activity/widgets.py", line 74, in __init__

    toolbar = ActivityToolbar(activity, orientation_left=True)

  File
"/home/fedora/sugar-build/build/out/install/lib/python2.7/site-packages/suga
r3/activity/widgets.py", line 333, in __init__

    description_item = DescriptionItem(activity)

  File
"/home/fedora/sugar-build/build/out/install/lib/python2.7/site-packages/suga
r3/activity/widgets.py", line 233, in __init__

    self.set_tooltip(_('Description'))

  File
"/home/fedora/sugar-build/build/out/install/lib/python2.7/site-packages/suga
r3/graphics/toolbutton.py", line 93, in set_tooltip

    self.palette = Palette(tooltip)

  File
"/home/fedora/sugar-build/build/out/install/lib/python2.7/site-packages/suga
r3/graphics/palette.py", line 135, in __init__

    self._label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)

AttributeError: type object 'EllipsizeMode' has no attribute 'MIDDLE'

Exited with status 1, pid 17010 data (None, <open file '<fdopen>', mode 'w'
at 0x2438030>, dbus.ByteArray('2a46048ae724acdfc03e3b0b26e3e3ebacf4f38b',
variant_level=1))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130609/e4b1489a/attachment.html>


More information about the Sugar-devel mailing list