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

Rafael Ortiz rafael at activitycentral.com
Thu Mar 29 15:53:19 EDT 2012


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.


http://git.sugarlabs.org/maze/mainline/commit/fa1cb850dd555a6283280458d0b2cec3af941d01

Should be ok now:

http://git.sugarlabs.org/maze/mainline/commit/a63dcf50f59536a86b8c799a6b19a9d8dc32fff4



--
> .. manuq ..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120329/d9097cfd/attachment-0001.html>


More information about the Sugar-devel mailing list