Re: [Sugar-devel] time for a design meeting?

2011-02-11 Thread Walter Bender
Thanks. This is very helpful. I have a couple of additional topics: one trivial and one that needs some discussion. 1. Trivial: as per #2592, there is an issue with size of the icons on the Random view. When I introduced the spiral, I increased the maximum icon size to Medium when there are few ic

[Sugar-devel] Making Sugar Shell smarter with Activities that change window

2011-02-11 Thread Martin Langhoff
Aleksey, Simon, after tearing my hair off a bit with an app that jumps through various windows during its lifetime, I came up with what seems to be a reasonable strategy for handling the situation In brief summary: - change the Activity.window property to an stack. - new windows are append()ed

Re: [Sugar-devel] [PATCH] Setting logging level of message "Gsm connection not set..." to warning from exception (SL #2247)

2011-02-11 Thread Sascha Silbe
Excerpts from Dipankar Patro's message of Sat Sep 18 19:03:15 +0200 2010: > Currently the message appears as an error whereas it is just > a warning message. Developer should not get this message an error, > so I have set the logging level to warning from exception. Pushed (with a new patch descr

Re: [Sugar-devel] time for a design meeting?

2011-02-11 Thread Simon Schampijer
On 02/09/2011 11:20 AM, Walter Bender wrote: There are a few design roadblocks in the race to 0.92 that could use some input from the design team. Any chance we could have a meeting some time soon? I could probably get on line from Lima on Sunday some time if that works. regards. -walter Hi W

Re: [Sugar-devel] [PATCH] Calculate/functions.py

2011-02-11 Thread Sascha Silbe
Excerpts from Tim McNamara's message of Thu Jun 03 08:09:59 +0200 2010: [Attached patch] What's the status of this patch? I can see quite some activity in the Calculate repository since you posted your patch, but nothing that indicates it has been merged. Is it still applicable? Sascha -- ht

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Sascha Silbe
Excerpts from Erik Blankinship's message of Fri Feb 11 21:08:20 +0100 2011: > I noticed there were two svg icons in the physics activity directory: > application-x-physics-project.svg and activity-physics.svg. > > Is there now a way to assign an icon to the files generated/used by my > activity

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Gonzalo Odiard
I don't know if is possible assign a icon to a mime type. Gonzalo On Fri, Feb 11, 2011 at 5:08 PM, Erik Blankinship wrote: > Thanks Gonzalo! I think that solves my problem. > > I noticed there were two svg icons in the physics activity directory: > application-x-physics-project.svg and activit

[Sugar-devel] [ASLO] Release GCompris-17

2011-02-11 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4313 Sugar Platform: 0.84 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27208/gcompris-17.xo Release notes: * Workaround for #2600 Sugar Labs Activities http://activities.sugarlabs.org _

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Sascha Silbe
Excerpts from Erik Blankinship's message of Fri Feb 11 20:24:39 +0100 2011: > I have created a mime-type for saved files in my video game: > application/x-my-cool-game. Datastore entries' metadata are saved with this > mime-type. [...] I'll repeat my recommendation [1] to read my explanations o

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Erik Blankinship
Thanks Gonzalo! I think that solves my problem. I noticed there were two svg icons in the physics activity directory: application-x-physics-project.svg and activity-physics.svg. Is there now a way to assign an icon to the files generated/used by my activity based on their extension type? On Fr

[Sugar-devel] [ASLO] Release GCompris Administration-17

2011-02-11 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4314 Sugar Platform: 0.84 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27207/gcompris_administration-17.xo Release notes: * Workaround for #2600 Sugar Labs Activities http://activities.sugarlabs.org __

Re: [Sugar-devel] [PATCH] fix trivial typo in extension loading exception

2011-02-11 Thread Sascha Silbe
Excerpts from James Cameron's message of Wed Jun 02 08:38:15 +0200 2010: > I've read your style guidelines on > http://wiki.sugarlabs.org/go/Development_Team/Code_guidelines in > particular the use of logging.debug('foo %r bar', x) instead of > logging.debug('foo %r bar' % x) as you pointed out, b

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Gonzalo Odiard
You need add a mimetypes.xml file to your activity. look at Physics activity Gonzalo On Fri, Feb 11, 2011 at 4:24 PM, Erik Blankinship wrote: > My video game runs in both gnome and sugar. I want kids to be able to move > saved games back and forth between these platforms with ease. > > I have c

[Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Erik Blankinship
My video game runs in both gnome and sugar. I want kids to be able to move saved games back and forth between these platforms with ease. I have created a mime-type for saved files in my video game: application/x-my-cool-game. Datastore entries' metadata are saved with this mime-type. When a vid

[Sugar-devel] [PATCH sugar 1/2] recognise translations using pgettext

2011-02-11 Thread Sascha Silbe
Since Python doesn't support pgettext, we need to teach xgettext to recognise it. Signed-off-by: Sascha Silbe --- po/Makevars |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 po/Makevars diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 000..da4

[Sugar-devel] [PATCH sugar 2/2] Allow "Remove" in Clipboard resp. Volumes palette to be translated differently

2011-02-11 Thread Sascha Silbe
Some languages (e.g. Spanish) benefit from having the translation for the "Remove" item in the Volumes palette different from the translation for the "Remove" item in the Clipboard palette. This builds on the pgettext() support in sugar-toolkit. Signed-off-by: Sascha Silbe --- src/jarabe/frame/

[Sugar-devel] [PATCH sugar 0/2] Use pgettext() for "Remove"

2011-02-11 Thread Sascha Silbe
Use pgettext() to distinguish between different "Remove" strings so we can translate them differently in some languages (e.g. Spanish) Sascha Silbe (2): recognise translations using pgettext Allow "Remove" in Clipboard resp. Volumes palette to be translated differently po/Makevars

[Sugar-devel] [PATCH sugar-toolkit] sugar.activity.i18n: add pgettext()

2011-02-11 Thread Sascha Silbe
Python 2 will never have pgettext() [1], so we need to ship our own version. sugar.activity.i18n is the best place for that. [1] http://bugs.python.org/issue2504#msg122482 Signed-off-by: Sascha Silbe --- src/sugar/activity/i18n.py |8 1 files changed, 8 insertions(+), 0 deletions(-

Re: [Sugar-devel] determine origin of file selected from an object chooser?

2011-02-11 Thread Erik Blankinship
On Thu, Feb 10, 2011 at 1:20 PM, Samuel Greenfeld wrote: > As far as I know there really is no need; when your activity saves state > (when exiting, etc.), it should save the copied file as part of the > activity's journal entry. > > At least this is how it has always worked with Jukebox & Read.

[Sugar-devel] [PATCH sugar-datastore v2 3/3] add (minimal) test suite (SL#1438)

2011-02-11 Thread Sascha Silbe
Add a minimal test suite for the data store operating on public DBus API level. Checks all public API calls, including some simple performance measurements. Signed-off-by: Sascha Silbe create mode 100644 tests/.gitignore create mode 100644 tests/Makefile create mode 100644 tests/__init__.py

[Sugar-devel] [PATCH sugar-datastore v2 1/3] find(): fix sort order in ambiguous cases

2011-02-11 Thread Sascha Silbe
From: Sascha Silbe Consistent results are important for the test suite. Signed-off-by: Sascha Silbe Signed-off-by: Sascha Silbe --- src/carquinyol/indexstore.py |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.

[Sugar-devel] [PATCH sugar-datastore v2 0/3] Add test suite

2011-02-11 Thread Sascha Silbe
I've finally fixed the style issues, so it's ready for a round of review. It has detected several data store bugs in the past, both in mainline and in my version support branch. v1->v2: fix race condition in the migration test case Sascha Silbe (3): find(): fix sort order in ambiguous cases a

[Sugar-devel] [PATCH sugar-datastore v2 2/3] add API to check/wait for index rebuild to finish (SL#1160)

2011-02-11 Thread Sascha Silbe
Signed-off-by: Sascha Silbe --- src/carquinyol/datastore.py | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/carquinyol/datastore.py b/src/carquinyol/datastore.py index 12458fb..69d50f4 100644 --- a/src/carquinyol/datastore.py +++

[Sugar-devel] [PATCH sugar-datastore] don't choke if timestamp property is missing

2011-02-11 Thread Sascha Silbe
The timestamp property might be missing due to incomplete writes (out of power, system crash) or software bugs. Signed-off-by: Sascha Silbe --- src/carquinyol/datastore.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/carquinyol/datastore.py b/src/carquinyol/datas

Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon

2011-02-11 Thread Sascha Silbe
[Posting to sugar-devel only because it's not specific to dextrose] Excerpts from Anish Mangal's message of Thu Feb 10 16:46:18 +0100 2011: > Currently, the 'network' icon on the frame tells us whether we're > connected to a network or not. Would it make sense for it to test for > internet conn