Commit Graph

6034 Commits

Author SHA1 Message Date
Daniel Narvaez
4dc7b9e4a4 Don't set atspi timeout
Looking at the code I'm unconvinced this behaves as expected,
in certain cases at least. So reverting it for now to avoid
confusion.
2013-06-15 19:16:59 +02:00
Daniel Narvaez
521778636e Add a UIUnitTest class
To make it easier to write UI unit tests.
2013-06-15 19:15:32 +02:00
walterbender
7fef364494 Merge pull request #2 from dnarvaez/sbtree
Resync with the sugar-build implementation of tree.py
2013-06-14 14:37:55 -07:00
Daniel Narvaez
c86c582e19 Resync with the sugar-build implementation of tree.py
Development continued there for a while. Now I will remove it
and used the toolkit implementation instead.

Changes:

* Retry faster
* Handle GLib errors
* Don't always dump the tree
* Support master atspi api
2013-06-14 23:27:13 +02:00
William Orr
b9e17f640e pep8'd tests 2013-06-11 15:29:20 +02:00
William Orr
30acc63d51 pep8'd examples 2013-06-11 15:27:59 +02:00
William Orr
c736ffefcd pep8'd sugar3 2013-06-11 15:27:19 +02:00
William Orr
1252d95671 pep8'd sugar3.test 2013-06-11 15:25:07 +02:00
William Orr
69a7aa8f68 pep8'd sugar3.presence 2013-06-11 15:21:39 +02:00
William Orr
edbc8f53b3 pep8'd sugar3.graphics 2013-06-11 15:18:15 +02:00
William Orr
51f07bba81 pep8'd sugar3.dispatch 2013-06-11 15:13:19 +02:00
William Orr
220c9b68ef pep8'd sugar3.datastore 2013-06-11 15:11:58 +02:00
William Orr
9e4454a2ed pep8'd sugar3.bundle 2013-06-11 15:10:55 +02:00
William Orr
8a6c935dd0 pep8'd sugar3.activity 2013-06-11 15:06:49 +02:00
Walter Bender
3e5c37f3f8 Adding SugarExt for setting hidden attribute on FAT files
This extension is used by Sugar to set the HIDDEN attribute for
.Sugar-Metadata. By creating an extension, we avoid the need to add an
additional dependency (fatattr) to Sugar. The code is modeled after
fatattr, using an IOCTL call get and set FAT file attributes.

There is a corresponding patch for model.py in sugar/src/jarabe/journal
2013-06-10 15:46:54 +02:00
Daniel Narvaez
9396b09ee4 Send bundleId and objectId to javascript
Also use the json module to generate the environemnt
dictionary string. This takes care of a None objectId
cleanly.
2013-06-10 15:46:54 +02:00
Gonzalo Odiard
58bab9cf6a Do not use the translated summary to get the value from gettext in the bundle builder
This patch is a rebased push from pull request #31

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
2013-06-10 15:46:54 +02:00
Daniel Narvaez
1f5e39f3a8 Cleanup environment initialization
We are not setting up a single sugar.window.environment object.
2013-06-10 15:46:54 +02:00
Daniel Narvaez
a1b73ff527 Rename HTML to web 2013-06-10 15:46:54 +02:00
Daniel Narvaez
8e381f9e2f Make the inspector toggle work reliably 2013-06-10 15:46:54 +02:00
Daniel Narvaez
28fe9b757f Use a relative path in the activities url
It's just a bit cleaner.
2013-06-10 15:46:54 +02:00
Daniel Narvaez
a30af509c2 Rework HTMLActivity to not inherit from Activity
This will make the activity use less memory and start faster.
2013-06-10 15:46:54 +02:00
Daniel Narvaez
3aadcbcbf0 Move the websocket service to the shell
It's a first step to make html activities much lighter. It also
just makes a lot more sense to have them interact directly with
the system rather than proxying through the python activity.
2013-06-10 15:46:54 +02:00
Daniel Narvaez
b276f61da1 Use javascript to setup websocket port and key 2013-06-10 15:46:54 +02:00
Daniel Narvaez
3f908ef999 Deprecate and ignore the SUGAR_EMULATOR variable 2013-06-10 15:46:54 +02:00
Daniel Narvaez
2fcac13791 Toggle the inspector on and off with ctrl-shift-i 2013-06-10 15:46:53 +02:00
Daniel Narvaez
0abae0e7d0 Use a custom scheme for app content
To get the origin right.
2013-06-10 15:46:53 +02:00
William Orr
e649070aa2 Replaced deprecated GObject methods with GLib methods 2013-06-10 15:46:53 +02:00
William Orr
3a8760c9e4 Fixed crash in journal when mousing over activity icons 2013-06-10 15:46:53 +02:00
Simon Schampijer
ba1abd4a33 Palettes: remove comment about deprecated API
We make use of this API in the shell and in the toolkit itself
and never removed those deprecated calls. Let's leave it like
this for now and remove the comment.
2013-06-10 15:46:53 +02:00
Daniel Narvaez
5db54b25a2 Ensure we cleanup the tmp dir
Even if the tests fails.
2013-06-10 15:46:53 +02:00
Daniel Narvaez
84eb370298 Don't set ACLOCAL
The m4 directory is specified in configure.ac. This export breaks
ACLOCAL_FLAGS and makes it impossible to build with
gobject-introspection in a non system path.
2013-06-10 15:46:53 +02:00
Pootle daemon
c25e218eec Commit from Sugar Labs: Translation System by user cjl.: 40 of 40 messages translated (0 fuzzy). 2013-05-26 06:55:47 +02:00
Pootle daemon
b230cc0f18 Commit from Sugar Labs: Translation System by user cjl.: 37 of 40 messages translated (3 fuzzy). 2013-05-17 00:53:45 +02:00
Simon Schampijer
c3c0639419 Merge pull request #18 from dnarvaez/pyflakes
Make the code pyflakes clean
2013-05-06 06:47:51 -07:00
Daniel Narvaez
fab8f96088 Run pyflakes on make check 2013-05-05 01:46:13 +02:00
Daniel Narvaez
55a072470f Silence pyflake 2013-05-05 01:46:13 +02:00
Daniel Narvaez
9f71aa864f Remove various unused bits 2013-05-05 01:44:03 +02:00
Daniel Narvaez
6c4a9b34a1 Add a get_xo_color API 2013-05-03 08:42:35 -03:00
Daniel Narvaez
671ad1ae3e Require authentication before making API calls
Otherwise anything might access the bus.

Note: This will not work if the user moves to another html page.  They
will not have a port/key passed in the query string of the URL, so
they won't be able to connect.
2013-05-03 08:40:44 -03:00
Daniel Narvaez
ff5612caee Add API to close an html activity
We are exposing it using a websocket server. The port of the server
is passed in the search string of the file:// url.
2013-05-03 08:40:24 -03:00
walterbender
17cd3e33bc Merge pull request #16 from dnarvaez/xocolor
Improve XOColor fallback logic
2013-05-02 11:59:14 -07:00
Daniel Narvaez
6cbc3d1a48 Improve XOColor fallback logic
We was failing if the value in gconf was None. Also parsing
the string once just to see if it's valid was pretty dumb.
2013-05-02 18:52:59 +02:00
walterbender
79fa03e846 Merge pull request #14 from dnarvaez/gconf-list-v2
Gconf list v2
Signed off by Walter (tested in the context of cpsection/keyboard)
2013-04-29 11:06:25 -07:00
Daniel Narvaez
680c501ad6 Add a binding for gconf_client_set_list (using strings) 2013-04-29 20:03:09 +02:00
Simon Schampijer
c9a6a36567 Merge pull request #11 from dnarvaez/html-exec
Add exec script to build pure html activities
2013-04-24 07:11:18 -07:00
Daniel Narvaez
d4019684a3 Add exec script to build pure html activities
An hello world activity using the script
http://git.sugarlabs.org/hello-world/mainline/trees/html
2013-04-23 16:05:20 +02:00
Daniel Narvaez
b59b326dbf Merge pull request #10 from manuq/4325
Color Palette: get back horizontal padding - SL #4325
2013-04-22 03:32:31 -07:00
Manuel Quiñones
7156e67aa2 Color Palette: get back horizontal padding - SL #4325
The PaletteWindow lost the horizontal padding when it started to be
used as replacement of palette menus.  So now each implementation has
to add the padding.

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
2013-04-17 17:09:45 -03:00
Daniel Narvaez
c78ebfd4d3 Merge pull request #9 from walterbender/fix-locale-4
Use gettext algorithm to determine locale for activity.linfo
2013-04-15 05:47:15 -07:00