[Sugar-devel] JS activity issues

Walter Bender walter.bender at gmail.com
Sat Jul 13 18:21:20 EDT 2013


So I wrote my first JS activity [1, 2] (although I wrote the original
XO Colors activity in JS and XML back in 2007) and will it sort of kid
of works, I have some problems:

(1) The toolbar buttons are not properly aligned vertically. From my
web browser, the activity button is properly aligned, but the "new"
button I added is offset down by about 25 pixels. In Sugar (latest
sugar-build running on F19), the activity button is offset down and
the "new" button is properly aligned.

(2) Somewhere along the line, my activity does not launch/close
properly: a gray circle on the frame (always a bad sign) along with my
ever-flashing activity icon.  Empty activity log file.

Lots of this in shell.log
1373753530.754283 DEBUG gwebsockets: Got data, length 52
1373753530.754836 DEBUG gwebsockets: Text message {"method":"activity.close","id
":9,"params":[]}
Traceback (most recent call last):
  File "/home/walter/sugar-build/build/out/install/lib/python2.7/site-packages/j
arabe/apisocket.py", line 288, in _message_received_cb
    getattr(self._apis[api_name](client), method_name)(request)
  File "/home/walter/sugar-build/build/out/install/lib/python2.7/site-packages/j
arabe/apisocket.py", line 57, in close
    self._activity.get_window().close(GLib.get_current_time())
AttributeError: 'NoneType' object has no attribute 'close'

Any pointers would be appreciated.

thx

-walter
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org

[1] https://github.com/walterbender/connectthedots
[2] http://people.sugarlabs.org/walter/ConnecttheDots-1.xo


More information about the Sugar-devel mailing list