338 Commits (9717e5954bdb99a2b9260c0ec4e14a85d8dbb781)

Author SHA1 Message Date
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).
11 years ago
Daniel Narvaez 2c225c0cee Release 0.99.3 11 years ago
Daniel Narvaez 51bc902afa Release 0.99.2 11 years ago
Daniel Narvaez c992f5fbfe Release 0.99.1 11 years ago
Daniel Narvaez 058271a4d7 Release 0.99.0 11 years ago
Daniel Narvaez bfe17826cb Use xz for distribution
It has better compression.
11 years ago
Daniel Narvaez 680c501ad6 Add a binding for gconf_client_set_list (using strings) 11 years ago
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.
11 years ago
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.
11 years ago
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.
11 years ago
Simon Schampijer 8357ccc4ea Release 0.98.3 12 years ago
Simon Schampijer 5b438e797a Release 0.98.2 12 years ago
Simon Schampijer 4de6057e1b Release 0.98.1 12 years ago
Simon Schampijer 783db60027 Release 0.98.0 12 years ago
Simon Schampijer d87967303c Release 0.97.13 12 years ago
Simon Schampijer 43bd520f3d Release 0.97.12 12 years ago
Simon Schampijer 936ebaa382 Release 0.97.11 12 years ago
Simon Schampijer 458e357585 Release 0.97.10 12 years ago
Simon Schampijer dcfc92dbd0 Release 0.97.9 12 years ago
Simon Schampijer 63a34191b1 Release 0.97.8 12 years ago
Simon Schampijer a2d2c79d5d Release 0.97.7 12 years ago
Simon Schampijer 23399f51dd Release 0.97.6 12 years ago
Simon Schampijer 31d6e6dd1e Release 0.97.5 12 years ago
Simon Schampijer 1da1f4a1ca Release 0.97.4 12 years ago
Simon Schampijer 6387b20c31 Release 0.97.3 12 years ago
Carlos Garnacho ade02f958b event-controller: Add separate library for event controllers
SugarEventController is an abstract object that attaches to a widget
and interprets an arbitrary set of events. Implementations of that
object get to define the sequence of events that trigger these.

The basic touch gestures (long press, rotate, swipe, zoom) have
been implemented on top of that object.

Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Simon Schampijer 4cf9ce0357 Release 0.97.2 12 years ago
Manuel Quiñones 1334cd5768 Release 0.97.1 12 years ago
Simon Schampijer db86a7282e Release 0.97.0 12 years ago
Simon Schampijer 512f14974e Release 0.96.4 12 years ago
Simon Schampijer e97e5cac6d Release 0.96.3 12 years ago
Simon Schampijer 439d3bf08d Release 0.96.2 12 years ago
Simon Schampijer 47c838acd8 Release 0.96.1 12 years ago
Simon Schampijer abe02123b7 Release 0.96.0 12 years ago
Simon Schampijer db2bcbb76b Release 0.95.6 12 years ago
Simon Schampijer f8c68b8330 Update ALL_LINGUAS
- remove qu (code change for Quechua to quz)
- remove ay (code change for Aymara to aym)
- remove cpp [Crioulo] no L10n planned at present
- remove pis [Solomon Islands Pidgin] no L10n planned at present
- remove tpi [Papua New Guinea Pidgin (Tok Pisin)] no L10n planned at present

Signed-off-by: Chris Leonard
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Simon Schampijer 38d881da7a Release 0.95.5 12 years ago
Sascha Silbe c653cdf4dc configure.ac: Require gobject-introspection
configure.ac already checked if gobject-introspection is installed, but
instead of aborting with an error it continued and silently omitted crucial
parts of the build system, confusing the user with the error message

make[4]: *** No rule to make target `SugarExt-1.0.gir', needed by `all-am'.  Stop.

much later in the build. Fix this by using the appropriate autoconf macro.

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
Simon Schampijer 7344db525d Release 0.95.4 12 years ago
Simon Schampijer 3ec2aca749 Release 0.95.3 12 years ago
Simon Schampijer 6499ce596d Release 0.95.2 13 years ago
Simon Schampijer f05f221f79 Fix the installation of languages
The GETTEXT_PACKAGE name must match the repository
name. Found when packaging for Fedora.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
13 years ago
Daniel Drake 4e137f6e4f sugar-activity: import and make independent of sugar-toolkit GTK versions
As we move to adding support for a second UI toolkit (GTK+ 3.x),
the sugar-activity binary used by all activities must become
backend-toolkit-independent. It would be wasteful to have two backend
toolkits loaded in memory, and in the GTK2/GTK3 case, it is impossible
(importing both results in an instant crash).

To achieve this, we split the existing sugar-toolkit activity/main.py:main()
functionality into two parts, moving it into the sugar-activity binary and
the Activity class as follows:
 1. All toolkit-specific stuff is moved into the Activity class (i.e.
   everything that interacts with GTK)
 2. Everything that can be reasonably/easily moved into the Activity class
   is also moved.
 3. What remains is the stuff that is inherently involved with the
   construction of the Activity object, not related to UI toolkits. This
   is moved into the sugar-activity binary.

main.py is then removed from sugar-toolkit, and sugar-activity is moved
from sugar to sugar-toolkit-gtk3 in order to keep toolkit-related code
with the toolkit itself.

With this work done, the one remaining question is how to invoke the main
loop. An optional run_main_loop() method is added to the activity class,
for GTK2 this will run the GTK2 main loop, for GTK3 the GTK3 main loop will
be run, etc.

Signed-off-by: Daniel Drake <dsd@laptop.org>
13 years ago
Daniel Drake e2c07af748 Import sugar-base into sugar-toolkit
Probably needs cleaning up a bit. And we use pygtk-codegen, ugh...

This is the commit id when we imported sugar-base:
b9406e5c9c9df5404c5b0d995178b5edb4d93628

Signed-off-by: Daniel Drake <dsd@laptop.org>
[squashed two patches into one]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Raul Gutierrez Segales 3372317922 Add wrapper for rsvg
Signed-off-by: Raul Gutierrez Segales <rgs@collabora.co.uk>
[split patch into several parts]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Raul Gutierrez Segales 0d3057941f configure.ac: replace PyGTK dependency with GTK3 dependencies
Signed-off-by: Raul Gutierrez Segales <rgs@collabora.co.uk>
[split patch into several parts, added description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 10d7f7d3f9 Switch sugarext to be an introspectable library
This makes sugarext accessible through introspection. It is used
from the shell (key grabber, sound volume management) and the
shell session management.

Making the sugarext introspectable was done following the
descriptions at: http://live.gnome.org/GObjectIntrospection#Using_GI

Signed-off-by: Simon Schampijer <simon@schampijer.de>
13 years ago
Simon Schampijer 000ed75cbe Rename the module to sugar3
The old gtk-2 based module will be present in
the 0.94 branch in the sugar-toolkit.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer f766da335c Release 0.95.1 13 years ago
Simon Schampijer 7ecfbc6cd0 Release 0.93.4 13 years ago