Commit Graph

5711 Commits

Author SHA1 Message Date
Pootle daemon
99b647bfc3 Commit from Sugar Labs: Translation System by user cjl.: 18 of 39 messages translated (1 fuzzy). 2012-01-29 16:56:57 +02:00
Pootle daemon
803a339e7e Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:42 +02:00
Pootle daemon
a4fab8904a Commit from Sugar Labs: Translation System by user cjl.: 10 of 39 messages translated (1 fuzzy). 2012-01-29 16:56:39 +02:00
Pootle daemon
228188b8e0 Commit from Sugar Labs: Translation System by user cjl.: 26 of 39 messages translated (1 fuzzy). 2012-01-29 16:56:36 +02:00
Pootle daemon
7430464978 Commit from Sugar Labs: Translation System by user cjl.: 20 of 39 messages translated (1 fuzzy). 2012-01-29 16:56:33 +02:00
Pootle daemon
af3d59dd44 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:29 +02:00
Pootle daemon
2ab580e938 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:20 +02:00
Pootle daemon
7166b77852 Commit from Sugar Labs: Translation System by user cjl.: 1 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:12 +02:00
Pootle daemon
14d97fc83b Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:08 +02:00
Pootle daemon
79461cd963 Commit from Sugar Labs: Translation System by user cjl.: 9 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:05 +02:00
Pootle daemon
0da670a494 Commit from Sugar Labs: Translation System by user cjl.: 38 of 39 messages translated (0 fuzzy). 2012-01-29 16:56:03 +02:00
Pootle daemon
6c7cde2d59 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:59 +02:00
Pootle daemon
e865279edb Commit from Sugar Labs: Translation System by user cjl.: 19 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:57 +02:00
Pootle daemon
2a517c1096 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:53 +02:00
Pootle daemon
8e220fcae0 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:48 +02:00
Pootle daemon
836660edfa Commit from Sugar Labs: Translation System by user cjl.: 33 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:45 +02:00
Pootle daemon
401c15fef7 Commit from Sugar Labs: Translation System by user cjl.: 21 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:40 +02:00
Pootle daemon
76f9acb65f Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:34 +02:00
Pootle daemon
81d9659769 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:29 +02:00
Pootle daemon
c0fbdd9ed8 Commit from Sugar Labs: Translation System by user cjl.: 31 of 39 messages translated (1 fuzzy). 2012-01-29 16:55:26 +02:00
Pootle daemon
4f73d4934a Commit from Sugar Labs: Translation System by user cjl.: 26 of 39 messages translated (1 fuzzy). 2012-01-29 16:55:21 +02:00
Pootle daemon
2b1d2ed31c Commit from Sugar Labs: Translation System by user cjl.: 2 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:20 +02:00
Pootle daemon
323e171576 Commit from Sugar Labs: Translation System by user cjl.: 29 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:15 +02:00
Pootle daemon
bc9a8d959a Commit from Sugar Labs: Translation System by user cjl.: 2 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:11 +02:00
Pootle daemon
704a24e292 Commit from Sugar Labs: Translation System by user cjl.: 38 of 39 messages translated (0 fuzzy). 2012-01-29 16:55:07 +02:00
Pootle daemon
b543736316 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:54:42 +02:00
Pootle daemon
baa0678757 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-29 16:54:35 +02:00
Pootle daemon
35543e49e2 Commit from Sugar Labs: Translation System by user cjl.: 4 of 39 messages translated (0 fuzzy). 2012-01-29 16:54:19 +02:00
Pootle daemon
d29e094407 Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-28 08:09:44 +02:00
Pootle daemon
7848ed8c4d Commit from Sugar Labs: Translation System by user cjl.: 39 of 39 messages translated (0 fuzzy). 2012-01-28 08:08:42 +02:00
Simon Schampijer
b5de7ef332 Remove support for the old deprecated toolbar
- removed deprecated imports from the activity module, use the
  widgets module instead
- removed the ActivityToolbox class
- removed the Stop button from the ActivityToolbar
- removed set_toolbar/get_toolbar API from the window module

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:36:37 +01:00
Simon Schampijer
ec7b363a70 Datastore: remove deprecated API
This API is not in use anywhere in the shell and has
been deprecated for quite some time.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:36:09 +01:00
Simon Schampijer
417006e463 ObjectChooser: remove deprecated parameters
The objectchooser had the 'title', 'flags' and 'buttons' parameters
deprecated for a long time, remove them now completely. The
only parameters allowed are now the 'parent' and the 'what_filter'.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:34:54 +01:00
Simon Schampijer
aae6082b14 Bundlebuilder: remove deprecated bundle_name argument
Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:33:03 +01:00
Simon Schampijer
70cee44717 Activity: remove deprecated _shared_activity member
Use the get_shared_activity method instead

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:31:52 +01:00
Simon Schampijer
ae85dd62d4 ActivityBundle: clean from deprecated code
- removed deprecated mime type 'application/vnd.olpc-x-sugar'
- activity.info file: removed deprecated field 'service_name' use 'bundle_id' instead
- activity.info file: removed deprecated field 'class' use 'exec' instead

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:24:12 +01:00
Simon Schampijer
a8342ecf8c Finally remove the keep button completely
see 0082e10f8e for
the complete reasoning.

e022aa8e4a already made the button
invisible, keeping it only for backwards compatibility.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Daniel Drake <dsd@laptop.org>
2012-01-24 12:20:52 +01:00
Simon Schampijer
6499ce596d Release 0.95.2 2011-12-22 14:53:09 +01:00
Simon Schampijer
b03a483854 Use the gtk3 toolkit in the sugar-activity
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
2011-12-20 19:19:26 +01:00
Gonzalo Odiard
24af358275 Set the sugar theme name in gsettings according the scale
We need set the theme in gsettings according the scale in
the SUGAR_SCLING environment variable.

Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2011-12-20 19:19:26 +01:00
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>
2011-12-20 19:19:26 +01:00
Daniel Drake
48ad255a78 Reimplement Palettes for GTK3
Moving from GTK2 to GTK3 has presented various challenges regarding
palettes.

In GTK2, we were able to access some internal API of the GtkMenu class
and use it to embed a GtkMenu in a regular window. As of GTK3, that API
has become private and we can no longer access it.

We still want to use GtkMenu for the advanced functionality it provides
(multiple-level menus, keyboard navigation, etc), but we are now limited
to popping it up with its own (internal) window, rather than being able
to pack it into one of our own.

Our palettes can historically be used either as a menu, or as a general
area where widgets can be added, or both. The new restrictions upon
GtkMenu force some changes here, but we work hard to stick to the old
API as far as possible.

A Palette instance now acts as a controller of either a "window widget"
(where any type of widget can be displayed as usual) or a "menu widget"
which just pops up a GtkMenu. A Palette defaults to the window mode, but
dynamically switches to menu mode if/when the user attempts to access
the menu element.

As a result of this, palettes can now pack either a user-defined collection
of widgets, or a menu, but types can no longer be mixed. This should
only affect a handful of palettes which will need to pick a single
approach and convert to it.

Some further challenges are presented by the fact that GtkMenu performs a
grab on the whole screen, meaning that all input events are delivered to
the GtkMenu widget. Through some careful event filtering and examination
of the mouse cursor position we are still able to determine when the mouse
has entered or left the invoker or menu areas.

This work is authored by Benjamin Berg, Marco Pesenti Gritti, Simon
Schampijer and Daniel Drake.
2011-12-20 19:19:16 +01:00
Daniel Drake
8126575461 SugarExt: make SugarGrid introspectable
This will be used by a future GTK3 port of the shell.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2011-12-20 19:00:22 +01:00
Daniel Drake
15946211cf Trivial GTK3 porting fixes
Fix some trivial issues missed earlier: various missing imports,
some minor API changes to adapt to, do_size_request simple porting,
etc.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2011-12-20 19:00:17 +01:00
Daniel Drake
827ab7218a Add EventIcon/CursorInvoker similar to CanvasIcon/CanvasInvoker
CanvasIcon and CanvasInvoker were removed in a previous GTK3-porting commit
as they were based on hippocanvas.

However, this leaves the toolkit with some missing functionality:
there is no longer a trivial way to show an icon which can receive mouse
events and pop up a palette. Such functionality is used in various
places throughout the shell and activities.

Reimplement this functionality as EventIcon and CursorInvoker.
Instead of reimplementing much of the Icon class (like CanvasIcon did),
EventIcon opts for a more simplistic encapsulation of an Icon object.
This means trivial API changes for CanvasIcon users who must now
use the 'icon' property with the Icon API.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2011-12-20 18:35:25 +01:00
Daniel Drake
5ad2fc7d6b SugarExt: drop pygobject2 initialisation
Now that we avoid linking with pygtk2/pygobject2, we need to remove
this initialisation call so that the module can be loaded at runtime.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2011-12-20 18:31:28 +01:00
Daniel Drake
3962517a58 activity.py: Apply sugar GTK3 theme and icon theme
In GTK2, theme name and icon theme name properties could be set in the
GTK2 RC file, at runtime, or by the X settings daemon.

For GTK3, the RC file configuration route for these settings has been
removed. As we do not currently have a settings daemon implementation,
apply these important settings at runtime, early in the Activity
class.

Signed-off-by: Daniel Drake <dsd@laptop.org>
2011-12-13 17:38:52 -03:00
Daniel Drake
b51d5c9dc7 Add MAINTAINERS file 2011-12-13 17:37:50 -03:00
Daniel Drake
64cceeada9 SugarExt: fix compile without pygtk
We no longer compile this against pygtk, so remove the include.
Add the now-required Python.h include in its place.
2011-12-13 17:35:33 -03:00
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>
2011-12-13 17:35:30 -03:00