[Sugar-devel] [PATCH Maze v2] Buttons to generate a harder or an easier level

Manuel Quiñones manuq at laptop.org
Thu Mar 29 16:09:12 EDT 2012


El día 29 de marzo de 2012 16:53, Rafael Ortiz
<rafael at activitycentral.com> escribió:
>
>
> 2012/3/29 Manuel Quiñones <manuq at laptop.org>
>>
>> El día 29 de marzo de 2012 14:11, Rafael Ortiz
>> <rafael at activitycentral.com> escribió:
>> >
>> >
>> > On Thu, Mar 29, 2012 at 9:44 AM, Manuel Kaufmann <humitos at gmail.com>
>> > wrote:
>> >>
>> >> On Thu, Mar 29, 2012 at 11:43, Manuel Kaufmann <humitos at gmail.com>
>> >> wrote:
>> >> > Added two buttons in the toolbar to generate a new level (harder or
>> >> > easier).
>> >> > These butons do the same work than '+' and '-' keys respectively.
>> >> >
>> >> > Icons by Manuel Quiñones (manuq).
>> >> >
>> >> > This commit solves ticket: #3376
>> >>
>> >> The new PATCH with the correct icons by Manuel Quiñones :D
>> >>
>> >> Thanks!
>> >>
>> >> --
>> >> Kaufmann Manuel
>> >> Blog: http://humitos.wordpress.com/
>> >> Porfolio: http://fotos.mkaufmann.com.ar/
>> >> PyAr: http://www.python.com.ar/
>> >> _______________________________________________
>> >> Sugar-devel mailing list
>> >> Sugar-devel at lists.sugarlabs.org
>> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >
>> >
>> > Ok tested and applied as:
>> >
>> >
>> > http://git.sugarlabs.org/maze/mainline/commit/d1f63be988a0fe2b6c376ad7dedae451ed7031e8
>> >
>>
>> Seems that activity.py is missing import gtk, log follows:
>>
>> ** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
>> 1333048859.273543 WARNING root: KeepButton has been deprecated since
>> Sugar 0.94 and should not be used in newly written code.
>> 1333048859.283074 WARNING root: No gtk.AccelGroup in the top level window.
>> 1333048859.292646 WARNING root: No gtk.AccelGroup in the top level window.
>>
>> /home/manuq/sugar-jhbuild/install/lib/python2.7/site-packages/sugar/graphics/window.py:194:
>> Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
>>  self.__vbox.pack_start(toolbar_box, False)
>> Traceback (most recent call last):
>>  File "/home/manuq/sugar-jhbuild/install/bin/sugar-activity", line
>> 146, in <module>
>>    main()
>>  File "/home/manuq/sugar-jhbuild/install/bin/sugar-activity", line 141, in
>> main
>>    instance = create_activity_instance(activity_constructor,
>> activity_handle)
>>  File "/home/manuq/sugar-jhbuild/install/bin/sugar-activity", line
>> 34, in create_activity_instance
>>    activity = constructor(handle)
>>  File "/usr/lib/python2.7/site-packages/olpcgames/activity.py", line
>> 104, in __init__
>>    toolbar = self.build_toolbar()
>>  File "/home/manuq/Activities/Maze.activity/activity.py", line 19, in
>> build_toolbar
>>    separator = gtk.SeparatorToolItem()
>> NameError: global name 'gtk' is not defined
>> Exited with status 1, pid 27861 data (None, <open file '<fdopen>',
>> mode 'w' at 0xab1dd30>,
>> dbus.ByteArray('f67fd66a6bf9fb7f3ba3b1ebd034a4f5388c5bc7',
>> variant_level=1))
>>
>>
>
> After Release I did other commits one of them accidentally removed gtk.

Ah great to know that was after the release.  I was testing from git master.

-- 
.. manuq ..


More information about the Sugar-devel mailing list