Commit Graph
94 Commits
Author SHA1 Message Date
Daniel Narvaez 987068959f Test commit 2014-05-11 22:21:12 +02:00
Daniel Narvaez 34e7a7fc55 Test commit 2014-05-11 22:19:59 +02:00
Daniel Narvaez ec2ebb9ecb Release 0.101.5 2014-05-03 13:15:27 +02:00
Daniel Narvaez 093d18199f Release 0.101.4 2014-04-01 10:52:48 +01:00
Daniel Narvaez d79815a86d Add missing translations 2014-03-30 11:58:36 +01:00
Daniel Narvaez 6074817264 Modernize gettext setup 2014-03-30 11:54:48 +01:00
Daniel Narvaez 01ed63ee4b Fixes for pep8 1.5 2014-03-29 19:25:34 +00:00
Daniel Narvaez f92f0efe06 Fix pep8 2014-03-24 09:43:20 +00:00
Daniel Narvaez 3c46bf1430 Release 0.101.3 2014-03-08 15:03:09 +01:00
Daniel Narvaez 76fe1d2595 Release 0.101.2 2014-02-14 18:50:40 +01:00
Daniel Narvaez 71b42a2da0 Fix chaining up to the parent 2014-01-03 17:38:46 +00:00
Daniel Narvaez acff63467d Fix pyflakes errors 2014-01-03 14:55:03 +00:00
Daniel Narvaez d4b4405c6c Release 0.101.1 2014-01-02 21:34:55 +00:00
Daniel Narvaez e58688fca0 Remove unnecessary check for python headers
We are not building python bindings anymore these days,
we are using gobject-introspection.
2013-12-28 00:18:53 +00:00
Daniel Narvaez ee88193186 Release 0.101.0 2013-12-05 21:27:22 +01:00
Daniel Narvaez 28423249f6 Make gir files depend on their library
Otherwise with parallel builds we might try to build gir files
before the library causing an error. This happened once in the
buildbot.

Fix #4606
2013-11-17 18:50:07 +01:00
Daniel Narvaez 1329531d2d Release 0.100.0 2013-11-01 00:42:45 +01:00
Daniel Narvaez cf392735a0 Ensure logs path exists when initializing logs
Otherwise, for example, if we start datastore alone
like we do in the tests, we try to create logs without
the directory and traceback.
2013-10-07 23:31:49 +02:00
Daniel Narvaez 2d33c92299 Release 0.99.4 2013-10-03 13:08:46 +02:00
Daniel Narvaez 6fdf5f208a Use python2 shebang
Some distributions have switched to python3 as default and our code
breaks because it's python2 specific. Follow the PEP 394
recommendation.
2013-09-30 11:55:14 -03:00
Daniel Narvaez 6d6469ee12 Remove now unused method 2013-09-15 16:34:03 +02:00
Daniel Narvaez fd831931ad Remove duplicated code
And deprecate duplicated function.
2013-09-11 18:12:54 +02:00
Daniel Narvaez a1b6b129aa Make the debug script profile aware 2013-09-11 17:33:27 +02:00
Daniel Narvaez fe192be798 Add a SUGAR_HOME environment variable
We should really use XDG directories but that will be a bit
more complicated and require migration scripts. This is a
short time solution to "expose" the dot sugar directory in
sugar-build.
2013-09-11 16:36:31 +02:00
Daniel Narvaez e908aeb8ca Remove unused imports 2013-09-11 16:34:48 +02:00
Daniel Narvaez 6523ba1481 Bind the new toolkit domain 2013-09-11 16:04:13 +02:00
Daniel Narvaez d12a1d5131 Fix translations domains to point to new toolkit 2013-09-11 16:02:47 +02:00
Daniel Narvaez b83ddaefaf Revert "Fix translations domains to point to new toolkit"
This reverts commit abe0de3ef8.
2013-09-11 15:59:34 +02:00
Daniel Narvaez 7e6a2cc261 Update .gitignore 2013-09-11 15:29:22 +02:00
Daniel Narvaez abe0de3ef8 Fix translations domains to point to new toolkit 2013-09-11 15:27:46 +02:00
Daniel Narvaez 9717e5954b Fix translations in non standard prefix
This drops a lot of code at the same time. The code in
__init__ was:

* Using a SUGAR_PREFIX environment variable that is not
defined anywhere
* Hardcoding prefix to /usr
* Setting up the sugar-base domain which doesn't exist anymore

The i18n module code was overcomplex because it was thought
for language packs which we don't support anymore, it was
not handling correctly locales with a country prefix, it
was hard coding the python prefix and it was not sorting
the directories as it intended too anyway.

The logic is very simple now. Use the locale directory in
the same prefix sugar-toolkit-gtk3 was installed, unless
SUGAR_LOCALEDIR is defined (for self contained bundles).
2013-09-10 22:55:11 +02:00
Daniel Narvaez 2c225c0cee Release 0.99.3 2013-09-05 16:47:12 +02:00
Daniel Narvaez 51bc902afa Release 0.99.2 2013-08-14 11:28:56 +02:00
Daniel Narvaez c992f5fbfe Release 0.99.1 2013-07-31 19:06:19 +02:00
Daniel Narvaez 363eef5293 Fix pep8 2013-07-05 00:57:03 +02:00
Daniel Narvaez 6d2b97daec Fix pep8 errors
pep8 1.6.4 detects more issues
2013-07-04 19:00:57 +02:00
Daniel Narvaez 058271a4d7 Release 0.99.0 2013-06-27 18:01:19 +02:00
Daniel Narvaez 8fff409046 Add missing headers
Fixes distcheck
2013-06-27 16:11:23 +02:00
Daniel Narvaez aa08f38a80 Implement only the test target, not check
At the moment our tests requires to be run inside a clean
dbus/xvfb session, which is not always available where the
check target is used (for example in distcheck). Also when
running distcheck in buildbot we don't really want to run
tests again, since we just run them in the check step.

We might revisit this in the future but using a non standard
target is the easiest solution for now.
2013-06-27 16:00:39 +02:00
Daniel Narvaez bfe17826cb Use xz for distribution
It has better compression.
2013-06-27 15:57:46 +02:00
Daniel Narvaez 9778f1d35f Don't set AT_SPI_CLIENT
This is not necessary anymore with latest at-spi2-atk
(See commit 683739dea15d7c02c217a404d8c5d9d7af076a57)
2013-06-26 23:00:58 +02:00
Daniel Narvaez 2476561bd0 Reapply pootle changes
Excluding the pot change
2013-06-25 22:19:21 +02:00
Daniel Narvaez 6316d3afcd Revert "Push several PO files"
This reverts commit 423278c88e.
2013-06-25 21:55:24 +02:00
Daniel Narvaez f54229efd2 Move setting AT_SPI_CLIENT to discover
It needs to be called as early as possible before unit tests
has a chance to import gtk.

Hopefully will fix random test failures we are seeing in buildbot.
2013-06-22 12:29:00 +02:00
Daniel Narvaez 6d319619f0 Factor out the discover logic to the test module
This avoids duplication in sugar and sugar-toolkit-gtk3
makefiles.
2013-06-22 12:28:56 +02:00
Daniel Narvaez 19bc2268d4 Log the UI tree on error
The dump method doesn't actually print anything, just
returns the tree as a string.
2013-06-19 19:20:44 +02:00
Daniel Narvaez 5bef5a82d2 Set the AT_SPI_CLIENT variable in the tests
This ensures the test itself is not recognized as a client
by the registry. I'm not sure how that happens since we are
not loading gtk, but it does. Not being a real gtk client with
a mainloop we wasn't answering dbus calls and causing the registry
to hang and fail.
2013-06-15 23:56:45 +02:00
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