[Sugar-devel] [PATCH Record (Gtk3)] Use new syntax for Gst.Caps

2013-02-06 Thread Manuel Kaufmann
Using the new syntax for Gst.Caps we avoid Gst's WARNING message in the log. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- glive.py | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/glive.py b/glive.py index 5d78bbe..d39e292 100644 --- a/glive.py

Re: [Sugar-devel] [RELEASE] sugar-toolkit-gtk3-0.98.2

2012-12-17 Thread Manuel Kaufmann
On Mon, Dec 17, 2012 at 6:49 PM, Simon Schampijer si...@schampijer.de wrote: The 2 points for KaufmannQuiñones 1 for Garnacho release. Yeah! We are closer of getting the ticket to Germany :) Congratulation to all the team involved on this! -- Kaufmann Manuel -- http://mkaufmann.com.ar

Re: [Sugar-devel] [Release] Clock-12

2012-12-16 Thread Manuel Kaufmann
Hi Daniel, On Sun, Dec 16, 2012 at 3:41 PM, Gary Martin garycmar...@googlemail.com wrote: This is a release of Clock-12 to fix #4079 (broken speech) for landing in the 13.1.0 release (thanks go to Humitos for the patch). Can we include this version of Clock?. It solves a really good feature

Re: [Sugar-devel] [sugar-toolkit-gtk3 PATCH] sl#4276: Writing the icon-files for .xo files on a permanent mount-point, and not /tmp. mount-point.

2012-12-10 Thread Manuel Kaufmann
On Mon, Dec 10, 2012 at 4:09 PM, Ajay Garg a...@activitycentral.com wrote: Thus, now as the solution, we write the icon-files (maximum of one file per activity) at ~/.sugar/default/icon_files. Now, the icons are rendered correctly then. I didn't check the patch yet, but I don't see anything

Re: [Sugar-devel] Automated testing

2012-12-08 Thread Manuel Kaufmann
On Fri, Dec 7, 2012 at 8:48 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Link to the test case (tree.py is an helper that I'm trying to integrated in toolkit) Good! This is really useful. I was playing with it yesterday and I found it fun! Another utility that I found useful is this one:

Re: [Sugar-devel] sugar-build make build-sugar-artwork and quad-core compilation

2012-11-27 Thread Manuel Kaufmann
On Mon, Nov 26, 2012 at 6:08 PM, Daniel Narvaez dwnarv...@gmail.com wrote: * make build only build the sources build just builds! * make pull only pulls the sources pull just pulls! * make check the system, pull the sources and builds them. (which is what make build was doing before) ...

Re: [Sugar-devel] [RELEASE] sugar-0.97.13

2012-11-27 Thread Manuel Kaufmann
On Tue, Nov 27, 2012 at 4:55 PM, Simon Schampijer si...@schampijer.de wrote: Meh... The boring release with no funny summary ;-) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

[Sugar-devel] sugar-build make build-sugar-artwork and quad-core compilation

2012-11-26 Thread Manuel Kaufmann
Hi, Sometime ago I used to run: make build-sugar-artwork to just re-compile sugar-artwork. Nowadays that is not more possible. Any clue here? Another issue is that I was able to set -j 8 to make and use more than one CPU to compile all sources. Is there any way to do that in the current

Re: [Sugar-devel] sugar-build make build-sugar-artwork and quad-core compilation

2012-11-26 Thread Manuel Kaufmann
On Mon, Nov 26, 2012 at 3:06 PM, Daniel Narvaez dwnarv...@gmail.com wrote: can you explain how you are using it exactly? I didn't readd it when I rewrote things because I was not very clear on the use case (I normally just make; make install stuff inside a shell). $ make build-sugar - just

Re: [Sugar-devel] sugar-build make build-sugar-artwork and quad-core compilation

2012-11-26 Thread Manuel Kaufmann
On Mon, Nov 26, 2012 at 3:59 PM, Daniel Narvaez dwnarv...@gmail.com wrote: But did you use it to build your own changes or changes someone made to the repo? Or both? I'm not sure if I used it for both. I used it before knowing auto-install. I mean, I made a change on some .py file and I ran

Re: [Sugar-devel] Shared activity game - Maze

2012-11-24 Thread Manuel Kaufmann
On Sat, Nov 24, 2012 at 6:34 PM, RJV jv.ravichand...@gmail.com wrote: It will be great fun if both the mazes were the same and both players could play on the same maze, racing against each other, as in the single XO, multi-players scenario! It does really work in that way in Maze-22. I worked

Re: [Sugar-devel] [sugar-build] Recent improvements

2012-11-18 Thread Manuel Kaufmann
On Fri, Nov 16, 2012 at 2:10 PM, Daniel Narvaez dwnarv...@gmail.com wrote: in the last couple of weeks I worked a lot on sugar-build and made a bunch of improvements: Well! You are doing a really good work! Congratulations and thanks for that! -- Kaufmann Manuel Blog:

Re: [Sugar-devel] Activities without summaries

2012-11-14 Thread Manuel Kaufmann
On Wed, Nov 14, 2012 at 9:22 AM, Gonzalo Odiard gonz...@laptop.org wrote: -InfoSlicer.activity/activity/activity.info Done. http://git.sugarlabs.org/infoslicer/mainline/commit/142d6f43c28e2eb5364c9c93fedd91b15ec0dbad Thank you for this email. -- Kaufmann Manuel Blog:

Re: [Sugar-devel] Browse activity proxy settings

2012-11-11 Thread Manuel Kaufmann
On Sun, Nov 11, 2012 at 11:41 AM, Ariel Calzada ar...@activitycentral.com wrote: I would like to know if there's a way to make Browse activity use PROXY SETTINGS. I tried configuring proxy settings in My settings/Network with no luck. I think we have to modify Browse to make this possible. I

Re: [Sugar-devel] [RELEASE] sugar-0.97.11

2012-11-10 Thread Manuel Kaufmann
On Sat, Nov 10, 2012 at 7:51 AM, Simon Schampijer si...@schampijer.de wrote: The one step closer to collaboration release. Well! That's really good! What is missing to say that collaboration is working properly? Yesterday, I worked on Maze Collaboration[1] on os9 and os10 with the sugar version

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Sugar scroll bar clicks should invoke page up/page down SL #3859

2012-11-05 Thread Manuel Kaufmann
On Mon, Nov 5, 2012 at 8:55 AM, Daniel Narvaez dwnarv...@gmail.com wrote: Also would be nice to update pygobject and others, and use them from packages now that there are for both Fedora and Ubuntu. Are these packaged for Fedora 17? We don't have support for Fedora 18 in sugar-build yet but

[Sugar-devel] [PATCH Read] Show 'No book' message when Read starts from scratch

2012-11-05 Thread Manuel Kaufmann
When the user starts a new instance of Read the 'No book' message is shown with a button to 'Choose a book' that opens the Object Chooser. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- emptypanel.py | 45 + icons/activity-read.svg | 11

[Sugar-devel] [PATCH Jukebox] Show 'No media' message when Jukebox starts from scratch

2012-11-05 Thread Manuel Kaufmann
When the user starts a new instance of Jukebox the 'No media' message is shown with a button to 'Choose media files' that opens the Object Chooser. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- emptypanel.py | 45 + icons/activity

Re: [Sugar-devel] Problem playing videos in jukebox

2012-11-02 Thread Manuel Kaufmann
On Thu, Nov 1, 2012 at 4:43 PM, Ariel Calzada ariel.calz...@gmail.com wrote: Image: http://build.laptop.org/13.1.0/os8/xo-1.75/ Jukebox Activity Version: 28 I've just test using these versions and I had no problem. The audio is not so good, but that is a known issue on 1.75. I downloaded the

[Sugar-devel] [PATCH sugar-toolkit-gtk3] Sugar scroll bar clicks should invoke page up/page down SL #3859

2012-11-02 Thread Manuel Kaufmann
] http://developer.gnome.org/gtk/2.24/GtkSettings.html#GtkSettings--gtk-primary-button-warps-slider Signed-off-by: Manuel Kaufmann humi...@gmail.com --- src/sugar3/activity/activity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity

[Sugar-devel] [PATCH sugar] Invoke page up/page down on scrollbars clicks

2012-11-02 Thread Manuel Kaufmann
] http://developer.gnome.org/gtk/2.24/GtkSettings.html#GtkSettings--gtk-primary-button-warps-slider Signed-off-by: Manuel Kaufmann humi...@gmail.com --- bin/sugar-session | 4 1 file changed, 4 insertions(+) diff --git a/bin/sugar-session b/bin/sugar-session index 23f88a1..5911052 100755

Re: [Sugar-devel] [PATCH sugar] Invoke page up/page down on scrollbars clicks

2012-11-02 Thread Manuel Kaufmann
On Fri, Nov 2, 2012 at 8:16 PM, Manuel Kaufmann humi...@gmail.com wrote: The default value of 'gtk-primary-button-warps-slider' in Gtk3 is True[1] and in gtk2 is False[2]. So, this patch sets that property to False to keep the same behaviour we had before. This patch works properly but, please

[Sugar-devel] [PATCH Browse] Reload fixed

2012-10-30 Thread Manuel Kaufmann
Hello, I'm sending the patch attached because after an update git send-mail is not more available (now, there is a subcommand called send-bugzilla :( ) Cheers, -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

[Sugar-devel] [PATCH Browse] Don't show error page when plugin will handle

2012-10-30 Thread Manuel Kaufmann
Hello, I found this bug while I was testing SL #3934 [1]. The patch that fixes this is attached. Cheers, [1] http://bugs.sugarlabs.org/ticket/3934 -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

[Sugar-devel] [PATCH Speak] Use radians instead of degrees

2012-10-29 Thread Manuel Kaufmann
Cairo.Context.arc needs the angle in radians instead of degrees. Give it as 360 (radians) was taking up to 8 seconds to draw the eyes. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- eye.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eye.py b/eye.py index

[Sugar-devel] espeak in gst 0.10 on 13.1.0

2012-10-24 Thread Manuel Kaufmann
Hello, I took a look at this issue[1] and I found that it's not possible to get the espeak gstreamer element on 13.1.0 os7 using gst 0.10 but it's available using Gst 1.0 (from gi.repository import Gst). However, there is no package called something like gstreamer1-plugins-espeak installed but

Re: [Sugar-devel] espeak in gst 0.10 on 13.1.0

2012-10-24 Thread Manuel Kaufmann
On Wed, Oct 24, 2012 at 3:28 PM, Peter Robinson pbrobin...@gmail.com wrote: the version in 13.1.0 is for gst1 and built against it. so, there is no way to have both of them, right? I mean, espeak for 0.10 and for 1.0. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

Re: [Sugar-devel] espeak in gst 0.10 on 13.1.0

2012-10-24 Thread Manuel Kaufmann
On Wed, Oct 24, 2012 at 3:46 PM, Peter Robinson pbrobin...@gmail.com wrote: Possibly, it was my understanding that we were moving to gst1 for the activities that use it. Yes, we are moving on that way. Actually, Speak is already ported to Gtk3 and Gst 1.0 but it doesn't work on 13.1.0 (same

Re: [Sugar-devel] espeak in gst 0.10 on 13.1.0

2012-10-24 Thread Manuel Kaufmann
On Wed, Oct 24, 2012 at 4:01 PM, Peter Robinson pbrobin...@gmail.com wrote: use rpm to remove the currently installed one and then grab the old one from koji and install it manually. Great! Thanks I used (on XO-1.5 13.1.0 os7): sudo rpm -e --nodeps gstreamer-plugins-espeak wget

[Sugar-devel] [PATCH ImageViewer] Rotate, Zoom and center the image

2012-10-23 Thread Manuel Kaufmann
-off-by: Manuel Kaufmann humi...@gmail.com --- ImageView.py | 113 ++--- ImageViewerActivity.py | 4 +- 2 files changed, 82 insertions(+), 35 deletions(-) diff --git a/ImageView.py b/ImageView.py index 30b19ac..cbc5516 100644

Re: [Sugar-devel] [VERY FRUSTRATING] sugar-build requires reboot of the laptop

2012-10-11 Thread Manuel Kaufmann
On Thu, Oct 11, 2012 at 10:46 AM, Ajay Garg a...@activitycentral.com wrote: a) Is there a way to NOT run sugar-build in fullscreen? If yes, then we could simply kill the process by clicking on x icon in the process window of sugar-build. A quick reply. Take a look at this link. That is what

[Sugar-devel] [PATCH v3 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-09 Thread Manuel Kaufmann
it looks for all the .goutputstream files in the instance directory and checks its mtime. If it greater than 1 day or it was created before we booted, Browse removes the old temporary file. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webactivity.py | 38

Re: [Sugar-devel] Turtle Confusion en Español

2012-10-08 Thread Manuel Kaufmann
On Mon, Oct 8, 2012 at 3:51 AM, Barry Newell barry.new...@anu.edu.au wrote: Congratulations to All! Thanks! I'm very happy that you liked our work. It's mutual, we like yours :) The effort that you and your colleagues have put into this project, and the high quality of the end result, have

Re: [Sugar-devel] [PATCH] Sort the activities in the home in alphabetic order

2012-10-05 Thread Manuel Kaufmann
On Fri, Oct 5, 2012 at 12:41 AM, Gonzalo Odiard godi...@sugarlabs.org wrote: The best we can do is provide a coherent order. Alphabetical using the localized numbers and the same order than in the list view, is the best in my opinion. I was about to suggest that maybe we can sort the

[Sugar-devel] [PATCH Jukebox 1/8] Use a notebook in the visualization area

2012-10-04 Thread Manuel Kaufmann
Previously an empty widget and a videowidget were packed and removed from a container, but there are problems with the video widget not ready when the player want start at times. Signed-off-by: Gonzalo Odiard gonz...@laptop.org Signed-off-by: Manuel Kaufmann humi...@gmail.com

[Sugar-devel] [PATCH Jukebox 2/8] Remove capsfilter filter because of performance

2012-10-04 Thread Manuel Kaufmann
Without this filter the performance to reproduce videos is great and in audio files the visualization performance is improved as well. The only consequense is the text (artist, track, etc) is rendered without antialiasing. Signed-off-by: Gonzalo Odiard gonz...@laptop.org Signed-off-by: Manuel

[Sugar-devel] [PATCH Jukebox 5/8] Use 'playbin2' instead of 'playbin'

2012-10-04 Thread Manuel Kaufmann
' player. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jukeboxactivity.py b/jukeboxactivity.py index 11e1331..5c02d23 100644 --- a/jukeboxactivity.py +++ b/jukeboxactivity.py @@ -698,7 +698,13

[Sugar-devel] [PATCH Jukebox 3/8] Stop the player when the user is reproducing a video and switch to another activity.

2012-10-04 Thread Manuel Kaufmann
Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/jukeboxactivity.py b/jukeboxactivity.py index 45bb333..97c2de4 100644 --- a/jukeboxactivity.py +++ b/jukeboxactivity.py @@ -101,6

[Sugar-devel] [PATCH Jukebox 4/8] Create GstPlayer just once

2012-10-04 Thread Manuel Kaufmann
firstly set the state of it to STATE_PAUSED, then to STATE_NULL and finally we change the uri. When this process finishes we change the state again to STATE_PLAYING. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 31 +-- 1 file changed, 13

[Sugar-devel] [PATCH Jukebox 7/8] Do not pause the stream after adding a new one

2012-10-04 Thread Manuel Kaufmann
After the user adds the first stream to the playlist it is played immediately and when a new stream is added, the first one is kept playing. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Sugar-devel] [PATCH Jukebox 6/8] Tag reader feature removed

2012-10-04 Thread Manuel Kaufmann
I removed it because of performance. Jukebox was working too slow when it was reproducing a video and it had to read the tag of the media added to the playlist. So, we decided to remove this feature by the moment. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 119

[Sugar-devel] [PATCH Jukebox 8/8] Port gst 0.10 to Gst 1.0

2012-10-04 Thread Manuel Kaufmann
Useful guide: * https://wiki.ubuntu.com/Novacut/GStreamer1.0 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- jukeboxactivity.py | 180 ++--- 1 file changed, 90 insertions(+), 90 deletions(-) diff --git a/jukeboxactivity.py b

Re: [Sugar-devel] ImageViewer (gtk3) traceback

2012-10-04 Thread Manuel Kaufmann
On Thu, Oct 4, 2012 at 1:54 PM, Gary Martin garycmar...@googlemail.com wrote: /me wonders if he dare mention this to Gonzalo as a solution for the same issue in Read Maybe we can design a widget for this and include it in sugar-toolkit-gtk3 so we will have more consistency between activities.

[Sugar-devel] Jukebox patches

2012-10-04 Thread Manuel Kaufmann
Hello people, I've just sent 8 patches to the sugar-devel mailing list for Jukebox. Seven of them are those ones that were applied to the sugar-0.98 (gtk2) branch that I ported to the master branch. The last one is the port of gstreamer from 0.10 to 1.0. Yesterday I was working a lot on Jukebox

Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 10:51 AM, Peter Robinson pbrobin...@gmail.com wrote: Ultimately I'm sure we'd like to drop 0.10 if at all possible just so we don't need to ship two copies and any of the deps that go with it. I'm working on the port of Jukebox to Gst 1.0 and I have it quite stable but

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 12:08 PM, Martin Langhoff martin.langh...@gmail.com wrote: Not at all. Ignoring the computer is not elegance. OK. I will send a new version of this patch with all the things that we were discussing. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

[Sugar-devel] Gst1.0 plugins in sugar-build

2012-10-03 Thread Manuel Kaufmann
Hello, I'd like to comment that there are many Gst 1.0 plugin decoders that are not built because of missing dependencies. I had to install libmad-devel.x86_64 (on my F17) to be able to play MP3 files from Jukebox. Daniel, can be this package added as a dependency for sugar-build? Cheers, --

Re: [Sugar-devel] Gst1.0 plugins in sugar-build

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 6:08 PM, Peter Robinson pbrobin...@gmail.com wrote: The advantage of gstreamer is you can add extra codecs easily by just installing packages and without recompiling anything and the functionality should just work without any changes in the application so I'm not sure

Re: [Sugar-devel] touch_test.py resutls

2012-10-02 Thread Manuel Kaufmann
On Mon, Oct 1, 2012 at 11:59 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Would be nice to have a touch example Activity. What do you think? Yes. I started a HelloTouchGestures some time ago when SugarGestures weren't developed yet and I used a known algorithm to match gestures. Do

Re: [Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Manuel Kaufmann
On Tue, Oct 2, 2012 at 6:40 AM, Martin Langhoff martin.langh...@gmail.com wrote: Good, but not enough. Compare mtime also to our boot time (ie: now - uptime). If the file is from before we booted, needs to be nuked. You say that I should add this test as well, right? I mean, compare if the file

[Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Manuel Kaufmann
it looks for all the .goutputstream files in the instance directory and checks its mtime. If it greater than 1 day or it was created before we booted, Browse removes the old temporary file. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webactivity.py | 38

Re: [Sugar-devel] touch_test.py resutls

2012-10-02 Thread Manuel Kaufmann
On Tue, Oct 2, 2012 at 10:32 AM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Yes, I can help you but I don't have a touch XO, so I can't test it. However, I could program it hypothetically, if you want (and you can), to test my changes. I can test your changes if you want but I think

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Manuel Kaufmann
On Tue, Oct 2, 2012 at 1:43 PM, Martin Langhoff martin.langh...@gmail.com wrote: +except: +logging.warning('/proc/uptime could not be read') +uptime = None Should I use EnvironmentError[1] here too? Tiny optimization and elegance improvement: just calculate

Re: [Sugar-devel] [PATCH 4/7] metadatareader: ignore .hidden files

2012-10-01 Thread Manuel Kaufmann
On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff mar...@laptop.org wrote: Ignore any file with a filename starting with a '.' -- metadatastore writes its tempfiles prefixed with a '.' . This patch is OK for me. Just a comment: this patch removes the possibility to have a property named

[Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-01 Thread Manuel Kaufmann
it looks for all the .goutputstream files in the instance directory and checks its mtime. If it greater than 1 day it removes the old temporary file. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webactivity.py | 29 + 1 file changed, 29 insertions(+) diff --git

[Sugar-devel] [PATCH Browse] Handle LoadInterruptedByPolicyChange SL #3972

2012-10-01 Thread Manuel Kaufmann
the same page where the user clicked the link in the tab. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/browser.py b/browser.py index fb8a985..ccdf78c 100644 --- a/browser.py +++ b/browser.py @@ -653,6 +653,12 @@ class Browser

Re: [Sugar-devel] [DESIGN] List View of Activities (hovering stars)

2012-09-30 Thread Manuel Kaufmann
On Sat, Sep 29, 2012 at 6:00 PM, Gary Martin garycmar...@googlemail.com wrote: So if the star is currently enabled (colorized) and you hover over it, you'll first see the grey rounded rectangle outline, then if you click/press it you will still see the grey rectangle outline and the star will

Re: [Sugar-devel] [PATCH 1/7] Add ds_clean flag to trigger index rebuilds #2095, #2317

2012-09-30 Thread Manuel Kaufmann
On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff mar...@laptop.org wrote: This gives us more complete coverage of cases where ENOSPC or other errors are hit when creating/updating datastore entries. I reviewed this patch and I think it's OK. I didn't test it because I'm not sure how to

Re: [Sugar-devel] [PATCH 2/7] Remove invalid/corrupt on-disk entries #2317

2012-09-30 Thread Manuel Kaufmann
On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff mar...@laptop.org wrote: When operating close to ENOSPC, we sometimes end up with incomplete or invalid on-disk entries. So we prune these during index rebuild. I took a look at this patch and it seems to be OK. -- Kaufmann Manuel Blog:

Re: [Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-09-30 Thread Manuel Kaufmann
Hi, I reviewed this patch and it seems to be OK for me. The only thing that I do not understand well is this comment / section. Can you explain to me this a bit more? Thanks On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff mar...@laptop.org wrote: +# FIXME: this codepath handles raw

Re: [Sugar-devel] [sugar-toolkit-gtk2] Add management of summary property to the activity.info file - v2

2012-09-29 Thread Manuel Kaufmann
On Thu, Sep 20, 2012 at 12:34 PM, godi...@sugarlabs.org wrote: +self._summary = None +self._local_summary = None Sorry to bother you, I have two questions: * What each of these variable mean? * What are the difference between them? -- Kaufmann Manuel Blog:

[Sugar-devel] [DESIGN] List View of Activities (hovering stars)

2012-09-29 Thread Manuel Kaufmann
Hello, I've just realize that there is no feedback on clicking on the star in the List View to make it Favorite. 1. Go to Home View 2. Click on List View 3. Hover one the star of one no-favorite Activity 4. The star gets colorized 5. Click on it 6. Did I click? Maybe we can use a 0.5

Re: [Sugar-devel] [DESIGN] List View of Activities (hovering stars)

2012-09-29 Thread Manuel Kaufmann
On Sat, Sep 29, 2012 at 3:52 PM, Gary Martin garycmar...@googlemail.com wrote: I think my last suggestion was that we should be using the round grey rectangle outline to show hover, press visual feedback (as we do in the Home view for Activity icons, though this is currently broken after the

[Sugar-devel] scale-changed and angle-changed events

2012-09-28 Thread Manuel Kaufmann
Hello, I'm working on ImageViewer using SugarGestures.ZoomController and SugarGestures.RotateController with the signals: angle-changed and scale-changed. I realized that those signals are trigged without a change on those values. For example, if I simply touch the screen with two fingers and do

Re: [Sugar-devel] [RELEASE] Browse-141

2012-09-28 Thread Manuel Kaufmann
On Fri, Sep 28, 2012 at 11:37 AM, Manuel Quiñones ma...@laptop.org wrote: The Palettes are back, nice page for errors, and many more fixes release. I'm very happy with this release. Thanks to manuq and gary for they help! -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

Re: [Sugar-devel] last-minute feature proposal for 0.98

2012-09-28 Thread Manuel Kaufmann
On Fri, Sep 28, 2012 at 11:19 AM, Walter Bender walter.ben...@gmail.com wrote: +self._jobject.metadata['launch-times'] = '%s, %d' % ( +self._jobject.metadata['launch-times'], +int(time.time())) Another approach for this portion. Maybe

Re: [Sugar-devel] [PATCH Browse] Display only the URL in the URL entry SL #3553

2012-09-27 Thread Manuel Kaufmann
On Thu, Sep 27, 2012 at 11:25 AM, Martin Langhoff martin.langh...@gmail.com wrote: - The tabs are often too small to show the title. This behaviour is going to change because we are going to use the same version of the tabs that is on the Gtk3 port of Terminal. They use all the available space

[Sugar-devel] Performace in os3

2012-09-27 Thread Manuel Kaufmann
Hello, I'm working on my 1.75 XO with os3 and I feel it really slow. There are some examples: - Hover in Favourite and List view 1. Hover in Favourite view 2. Move the mouse directly to List view and hover it 3. It shows the palette after the timeout but the palette square appears first and

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-25 Thread Manuel Kaufmann
On Fri, Sep 21, 2012 at 8:32 PM, Martin Langhoff martin.langh...@gmail.com wrote: So just put img src=file:///path/to/file . That saves a some of pointless CPU cycles, some RAM. This old man doesn't like inefficient code, even in small details. I agree with you in this point but I would like

[Sugar-devel] [PATCH Browse] Undo close tab SL #3534

2012-09-24 Thread Manuel Kaufmann
Browse manages a list of 10 recently closed tab to be able to re-open them (the most recently closed is opened firstly) by pressing Ctrl+Shift+T. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 13 + webactivity.py | 11 +-- 2 files changed, 22

[Sugar-devel] [PATCH Browse] Show Bookmark toolbar when a bookmark is added SL #3868

2012-09-24 Thread Manuel Kaufmann
The Bookmark toolbar is shown when the first bookmark is added by the user. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webactivity.py | 1 - 1 file changed, 1 deletion(-) diff --git a/webactivity.py b/webactivity.py index 24f3b44..f9497db 100644 --- a/webactivity.py +++ b

[Sugar-devel] [PATCH Browse] Display only the URL in the URL entry SL #3553

2012-09-24 Thread Manuel Kaufmann
The Title of the current page is no longer shown in the URL entry. Now, it's only shown in the tab and the current URL is visible all the time in the URL entry. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py| 13 + webtoolbar.py | 53

[Sugar-devel] [PATCH v2 Browse] Busy indication SL #851

2012-09-21 Thread Manuel Kaufmann
Show WATCH Cursor when the page is loading and LEFT_PTR when the load finishes. This changes take in consideration the tab that the user is watching, so the cursor refers to the state of the current browser / tab. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 21

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-21 Thread Manuel Kaufmann
On Wed, Sep 19, 2012 at 10:56 PM, Martin Langhoff martin.langh...@gmail.com wrote: You have the file on-disk. It is inefficient to base64-encode it. I'm not sure to understand what you are saying here. I'm not doing this each time the function is called. Here, I just showed what I did to get the

[Sugar-devel] [PATCH Browse] Change back/forward navigation shortcut to Alt modifier SL #3536

2012-09-21 Thread Manuel Kaufmann
Signed-off-by: Manuel Quiñones ma...@laptop.org Signed-off-by: Manuel Kaufmann humi...@gmail.com --- webactivity.py | 14 -- webtoolbar.py | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/webactivity.py b/webactivity.py index 24f3b44..e911337 100644

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-19 Thread Manuel Kaufmann
On Tue, Sep 18, 2012 at 10:58 PM, James Cameron qu...@laptop.org wrote: Neat. What method did you use to convert the image? Python... It is my best friend :) import base64 base64.b64encode(open('browse-logo.png', 'r').read()) See you, -- Kaufmann Manuel Blog: http://humitos.wordpress.com/

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-19 Thread Manuel Kaufmann
On Wed, Sep 19, 2012 at 8:38 AM, Manuel Kaufmann humi...@gmail.com wrote: Added an Error page with Sugar style that informs the users about the the page could not be loaded for any reason. I had to add --no-validate to the git send-email command because this patch has a line longer than 998

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-18 Thread Manuel Kaufmann
On Mon, Sep 17, 2012 at 7:40 PM, James Cameron qu...@laptop.org wrote: I've no other comments about the patch. Thanks for your comments. I'm about to send a new patch. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr:

[Sugar-devel] [PATCH sugar-toolkit-gtk3 2/2] Signal to check free available space

2012-09-18 Thread Manuel Kaufmann
Datastore will emit the 'datastore.error' signal when the free available space will be under SPACE_THRESHOLD. This will allow activities to handle this situation properly. For example, Browse could cancel a download in progress. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- src/sugar3

[Sugar-devel] [PATCH Browse 1/2] Cancel a download if space is very tight SL #394

2012-09-18 Thread Manuel Kaufmann
It checks for enough space (using Activity.enough_space) before downloading the file. If not, Browse will cancel the download process before starting it and an Alert will be shown to the user to inform this situation. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- downloadmanager.py | 63

[Sugar-devel] [PATCH Browse 2/2] Handle datastore.error signal

2012-09-18 Thread Manuel Kaufmann
Stop the downloading process when this signal is received with the datastore.LOW_SPACE error code. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- downloadmanager.py | 8 1 file changed, 8 insertions(+) diff --git a/downloadmanager.py b/downloadmanager.py index 5ad1a6f..bd8386d

[Sugar-devel] Not enough space adventure

2012-09-18 Thread Manuel Kaufmann
Hello people, I'd like to comment what I've been doing these days regarding Downloading a file with Browse without having enough space to keep it. * http://bugs.sugarlabs.org/ticket/394 We where discussing about this last week[1] and we found the root issue of this problem: Sugar is not

[Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-18 Thread Manuel Kaufmann
Added an Error page with Sugar style that informs the users about they are not connected to the internet when the page can not reached for any reason. This patch contains a HTML template (error_page.tmpl) that is used to generate the error page with the correct language. Signed-off-by: Manuel

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-18 Thread Manuel Kaufmann
On Tue, Sep 18, 2012 at 1:55 PM, Manuel Kaufmann humi...@gmail.com wrote: This patch contains a HTML template (error_page.tmpl) that is used to generate the error page with the correct language. Please, comments and suggestions are welcomed here. I didn't find an existent way (inside Sugar

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-18 Thread Manuel Kaufmann
On Tue, Sep 18, 2012 at 2:54 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Oh cool, load_alternate_string definitely looks like the way to go. (it doesn't break history etc). Yeah! http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#WebKitWebView--load-status Thanks,

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-18 Thread Manuel Kaufmann
On Tue, Sep 18, 2012 at 2:21 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Perhaps you could use the data protocol to avoid the temporary file http://www.ietf.org/rfc/rfc2397.txt I used this to put the images inside the html-string. img id=browse-logo src=data:image/png;base64,iVBO (...) /img

[Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-17 Thread Manuel Kaufmann
It checks if there will be more than MIN_DISKFREE_AFTER_DOWNLOAD (20Mb) after downloading the file. If not, Browse will cancel the download process before starting it and an Alert will be shown to the user to inform this situation. Signed-off-by: Manuel Kaufmann humi...@gmail.com

[Sugar-devel] [PATCH sugar 1/2] ModalAlert ported to Gtk3

2012-09-17 Thread Manuel Kaufmann
Gtk.VBox.pack_start() and Gtk.Alignment.new() fixed to run over Gtk3 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- src/jarabe/journal/modalalert.py | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/jarabe/journal/modalalert.py b/src/jarabe/journal

Re: [Sugar-devel] Adventures in the land of ENOSPC

2012-09-13 Thread Manuel Kaufmann
On Thu, Sep 13, 2012 at 4:47 PM, Martin Langhoff martin.langh...@gmail.com wrote: Manuel Kaufmann has been looking at SL#394, and looking at the bug report, it struck me that it was reported backwards. I would have written: I filled up my disk and it knocked the system out, Sugar would

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Manuel Kaufmann
On Tue, Sep 11, 2012 at 10:27 PM, Martin Langhoff martin.langh...@gmail.com wrote: - During the webkit download -- most probable stage where you'll hit it. How does Webkit behave? Does Browse need to do anything? I'm attaching an example that downloads a file with WebKit. I tried it setting

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Manuel Kaufmann
On Tue, Sep 11, 2012 at 10:27 PM, Martin Langhoff martin.langh...@gmail.com wrote: - During datastore.write() -- I truly believe that the datastore.write() call doesn't literally make a copy of the file -- should just create/update the hardlink and associated metadata (including progress

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Manuel Kaufmann
On Wed, Sep 12, 2012 at 9:21 AM, Martin Langhoff martin.langh...@gmail.com wrote: That's very good handling on webkit's side. And does it remove the file? IOWs, when you get the signal, what do you see in the tmpfs? Is there a file filling it, or has the file been removed? Oh, sorry. I forgot

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Manuel Kaufmann
On Mon, Sep 10, 2012 at 9:49 PM, Martin Langhoff martin.langh...@gmail.com wrote: Here, get the content-length... and compare with the free bytes (plus some padding, say, 15%). Maybe we still want to preserve a minimum disk space. For example: don't let a download put you below 50MB or 10MB

[Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Manuel Kaufmann
It checks if there will be more than MIN_DISKFREE_AFTER_DOWNLOAD (50Mb) after downloading the file. If not, Browse will cancel the download process before starting it and an Alert will be shown to the user to inform this situation. Signed-off-by: Manuel Kaufmann humi...@gmail.com

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Manuel Kaufmann
On Tue, Sep 11, 2012 at 8:03 PM, Gonzalo Odiard gonz...@laptop.org wrote: Can you try almost fill the xo and copy a big file with the journal from a pendrive? I remember a big message in the screen when this happen, and will point you to the code. Yes, I've already try that and I commented

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Manuel Kaufmann
On Tue, Sep 11, 2012 at 8:50 PM, Martin Langhoff martin.langh...@gmail.com wrote: mkdir /tmp/foo sudo mount -t tmpfs -o size=1M none /tmp/foo Now write there to a file in /tmp/foo to see what happens, exactly. This is what I got: [olpc@xo-07-30-50 ~]$ mkdir /tmp/foo [olpc@xo-07-30-50 ~]$

[Sugar-devel] [PATCH Browse] Busy indication SL #851

2012-09-10 Thread Manuel Kaufmann
Show WATCH Cursor when the page is loading and LEFT_PTR when the load finishes. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 4 1 file changed, 4 insertions(+) diff --git a/browser.py b/browser.py index 7379d2b..90378cb 100644 --- a/browser.py +++ b/browser.py

[Sugar-devel] [PATCH Browse] Don't call .start after .set_destination_uri SL #3878

2012-09-10 Thread Manuel Kaufmann
Do not call WebKitDownload.start after .set_destination_uri because it is no needed. The download will start automatically after .set_destination_uri. http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#WebKitWebView-download-requested Signed-off-by: Manuel Kaufmann humi

[Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Manuel Kaufmann
If there are less than 50Mb free on the Hard Disk the downloading process is canceled and this is informed to the user via an Alert. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- downloadmanager.py | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff

[Sugar-devel] [PATCH [v2] Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Manuel Kaufmann
If there are less than 50Mb free on the Hard Disk the downloading process is canceled and this is informed to the user via an Alert. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- downloadmanager.py | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff

  1   2   3   4   5   >