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
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
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
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
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
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
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
Daniel Narvaez
680c501ad6
Add a binding for gconf_client_set_list (using strings)
2013-04-29 20:03:09 +02: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
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
Daniel Narvaez
7cb4a1d72d
Handle invalid /desktop/sugar/user/color
...
This is currently breaking the activity list unit test where
the profile has not been initialized. But, more in general,
it seems like we should not be crashing if our settings has
unexpected values.
2013-04-09 18:13:18 +02:00
dnarvaez
7ac2cae7c6
Merge pull request #3 from dnarvaez/unit-tests2
...
Initial bits of unit tests
2013-04-09 05:10:28 -07:00
Daniel Narvaez
6202d4d5cc
Bind xdgmime in SugarExt
...
And use it in the sugar3.mime modules. This allows
to get rid of the pygtk generated sugarbase module,
along with the wrapping code.
Also add more cases to test_time to make sure
everything is still working.
2013-04-09 11:36:51 +02:00
Daniel Narvaez
e6397cf2db
Some initial infrastructure for UI tests
...
The uitree module exposes the at-spi tree. We can use it to do
functional tests of the UI, by checking if the expected
widgets exists, clicking them etc.
A simple example of how this can be used is in the test, which
runs a window and check that it has the expected button.
2013-04-09 11:36:51 +02:00
Daniel Narvaez
5ad6c4e236
Add test for dev command
2013-04-09 11:36:51 +02:00
Daniel Narvaez
65560b0b94
Add a SUGAR_ACTIVITIES_PATH environment variable
...
Useful for tests but perhaps for other stuff too.
2013-04-09 11:36:51 +02:00
Daniel Narvaez
617c11a078
Add test for the genpot command
2013-04-09 11:36:51 +02:00
Daniel Narvaez
ac153f3cdc
Add test for the build command
2013-04-09 11:36:51 +02:00
Daniel Narvaez
f66fbe4c08
Add tests for bundlebuilder
2013-04-09 11:36:51 +02:00
Daniel Narvaez
148655635f
Add a make target for tests
...
We are running the existing test_mime.py. All the other tests which
are not unit tests but more examples of code one can run interactively
are moved to the example directory.
2013-04-09 11:36:51 +02:00
Daniel Narvaez
c5f30a9fbe
Support out of source directory builds
...
It works similarly to automake. The current working directory
is used as build directory.
2013-04-09 11:36:49 +02:00
Daniel Narvaez
07d593fe52
Rework the install to use git files
...
Instead of installing everything except a few ignored files. This
is consistent with the other packagers.
2013-04-09 11:36:04 +02:00
Daniel Narvaez
9db81af598
Remove a few unused keywords
2013-04-05 17:05:42 +02:00
Daniel Narvaez
db448c4eea
Remove a lot of unused imports
...
Signed-off-by: Daniel Narvaez <[email protected] >
2013-04-03 22:01:55 +02:00
Daniel Narvaez
5ea6472e0d
Add missing dependencies
...
I'm not sure how it works with GNU ld, but it breaks with ld
gold and it's clearly wrong anyway.
2013-01-28 19:01:44 +01:00
Daniel Narvaez
7ba72c4c61
Remove duplicated library flags
...
They are already provided by the pc files.
2013-01-28 18:41:54 +01:00
Daniel Narvaez
2bbeba2446
Logger: add cleanup function
...
Factored out from the sugar shell code
Acked-by: Simon Schampijer <[email protected] >
2013-01-22 10:18:26 +01:00
Daniel Narvaez
f3f72a7b16
Dispatcher: use the gtk3 toolkit
...
Signed-off-by: Daniel Narvaez <[email protected] >
Acked-by: Simon Schampijer <[email protected] >
2012-11-13 15:54:17 +01:00
Daniel Narvaez
4cc6967c8d
Reimplement the wm module in C
...
The wm module in sugar-toolkit-gtk3 has been reimplemented
in C and made available through introspection. The same was
hard to achieve directly using the Gdk API.
We can drop wm.py and the wrapper around gdk_property_change.
Signed-off-by: Daniel Narvaez <[email protected] >
Acked-by: Simon Schampijer <[email protected] >
2012-09-06 18:14:46 +02:00
Daniel Narvaez
80c6028ddd
Allow to build outside source directory
...
Reviewed-by: James Cameron <[email protected] >
Acked-by: Simon Schampijer <[email protected] >
2012-08-07 18:55:38 +02:00