Re: [sugar] [PATCH] screenshots hurt
On Fri, Sep 5, 2008 at 8:33 PM, Erik Garrison [EMAIL PROTECTED] wrote: Ok. Thanks for this information. When is this callback hit?: http://dev.laptop.org/git?p=sugar-toolkit;a=blob;f=src/sugar/activity/activity.py;h=73eeea7499dcd4dcd28cea5c55648b8f414654e9;hb=HEAD#l487 Oh, yeah. As Andrès said, that's called when we are closing the sugar session (because the user is shutting down the laptop) and the activity needs to save/quit. Marco ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] Reviews report
= New requests = Journal doesn't start when NAND is full. http://dev.laptop.org/ticket/7631 = Approved requests = Shell _launchers are leaked http://dev.laptop.org/ticket/8300 ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] [Activities] Camera raw mode (WAS: Panorama activity)
Nirav, IIRC the camera also supports a RAW mode, right? Is this another feature that we could integrate into an advanced camera activity that also includes the features mentioned below? Thanks, Christoph On Fri, Sep 5, 2008 at 4:26 PM, Nirav Patel [EMAIL PROTECTED] wrote: I don't know about integrating it into Record, but the other issues are fairly easy to resolve. I wrote a Python module over the summer to interface v4l2 cameras that returns Pygame surfaces. Capturing images is near instant (~20ms for 640x480 RGB). Autogain and autowhitebalance can be disabled using v4l2 camera controls. There is support in my module for the hflip and vflip controls, but adding additional controls is trivial. Alternately, we could just use a little utility in C to access any v4l2 camera control. Since the module I wrote is for Pygame and is eventually going to be cross platform, adding v4l2 specific stuff to it is probably not the greatest idea. It may just be better to skip sticking it in Record and make a standalone activity, since Record seems to have plenty of issues on its own without a big new feature. There wouldn't be much code duplication if Panorama doesn't use gstreamer anyway. Nirav On Fri, Sep 5, 2008 at 9:26 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: [EMAIL PROTECTED] ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] [RELEASE] sugar-0.82.3
sources: http://dev.laptop.org/pub/sugar/sources/sugar/sugar-0.82.3.tar.bz2 Closed Tickets * #8300 Shell _launchers are leaked * #7856 notify::active behaviour change * #8250 Invalid POT for Copyright and License of control panel ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] [RELEASE] hulahop 0.4.5
sources: http://dev.laptop.org/pub/sugar/sources/hulahop/hulahop-0.4.5.tar.bz2 # Move vendor information into the packages # check compreg only when the profile is available #8318 ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] [Activities] Camera raw mode (WAS: Panorama activity)
It supports Bayer RGGB8, which should be basically unprocessed data off of the CMOS. I can't imagine it being useful though. It would require unBayerizing it to display, even though the XO's display is also Bayer (I assume pixel offsets and swizzling would mess it up, even if the colors are in the same order). You're better off letting the camera do the heavy processing and just get packed RGB back. Nirav On Sat, Sep 6, 2008 at 10:15 AM, Christoph Derndorfer [EMAIL PROTECTED] wrote: Nirav, IIRC the camera also supports a RAW mode, right? Is this another feature that we could integrate into an advanced camera activity that also includes the features mentioned below? Thanks, Christoph On Fri, Sep 5, 2008 at 4:26 PM, Nirav Patel [EMAIL PROTECTED] wrote: I don't know about integrating it into Record, but the other issues are fairly easy to resolve. I wrote a Python module over the summer to interface v4l2 cameras that returns Pygame surfaces. Capturing images is near instant (~20ms for 640x480 RGB). Autogain and autowhitebalance can be disabled using v4l2 camera controls. There is support in my module for the hflip and vflip controls, but adding additional controls is trivial. Alternately, we could just use a little utility in C to access any v4l2 camera control. Since the module I wrote is for Pygame and is eventually going to be cross platform, adding v4l2 specific stuff to it is probably not the greatest idea. It may just be better to skip sticking it in Record and make a standalone activity, since Record seems to have plenty of issues on its own without a big new feature. There wouldn't be much code duplication if Panorama doesn't use gstreamer anyway. Nirav On Fri, Sep 5, 2008 at 9:26 AM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Derndorfer wrote: | Sweet, I totally missed that! | | Is anyone actively working on integrating that functionality into 'record' | or making it available as a seperate activity? | | Christoph | See http://lists.laptop.org/pipermail/sugar/2008-February/004307.html The Panorama Activity is snot quite barely functional. It might be best to roll this functionality into Record, and Erik Blankinship has expressed some interest in that. However, Record's UI is very unusual, and I am not about to attempt integration with it myself. Also, as you can see in the examples, this process is only likely to work well once the camera's automatic white balance and gain control are deactivated. The only way I know how to do that is to run in Bayer mode. Bayer mode was introduced in a recent gstreamer, but gstreamer was recently downgraded, which leaves me without a known reliable way to access Bayer mode. - --Ben P.S. For Bayer mode info, see http://lists.laptop.org/pipermail/devel/2008-February/011029.html -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjBM3oACgkQUJT6e6HFtqRowgCfUlngIFr+Gl3jxKRYZAXBNl/x 2hEAnAnoDrrvcd+vIHO68aJthULDKAQC =cvG0 -END PGP SIGNATURE- -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: [EMAIL PROTECTED] ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] [PATCH] Bug #3742 CanvasRoundBox ignores border_color
I've come across this bug while cleaning up HippoCanvas usage from the Chat activity code I'm using for the embeddable chat. This bug causes CanvasRoundBox to ignore the border_color parameter passed to its constructor and set it always to COLOR_BLACK. From http://dev.laptop.org/ticket/3742 Replying to morgs http://dev.laptop.org/ticket/3742: | Passing border_color to init doesn't work as it is overridden to COLOR_BLACK, so I have to set it separately This is solved by not overriding border_color in CanvasRoundBox when one is provided. I believe the attached patch fixes this bug. diff --git a/src/sugar/graphics/roundbox.py b/src/sugar/graphics/roundbox.py index 573344e..1faf9fe 100644 --- a/src/sugar/graphics/roundbox.py +++ b/src/sugar/graphics/roundbox.py @@ -26,7 +26,7 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem): _BORDER_DEFAULT = style.LINE_WIDTH -def __init__(self, **kwargs): +def __init__(self, border_color=None, **kwargs): hippo.CanvasBox.__init__(self, **kwargs) # TODO: we should calculate radius depending on the height of the box. @@ -36,7 +36,8 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem): self.props.border = self._BORDER_DEFAULT self.props.border_left = self._radius self.props.border_right = self._radius -self.props.border_color = style.COLOR_BLACK.get_int() +if not border_color: +self.props.border_color = style.COLOR_BLACK.get_int() def do_paint_background(self, cr, damaged_box): [width, height] = self.get_allocation() ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] [PATCH] Bug #3742 CanvasRoundBox ignores border_color
On Sat, Sep 6, 2008 at 3:55 PM, Andrés Ambrois [EMAIL PROTECTED]wrote: This is solved by not overriding border_color in CanvasRoundBox when one is provided. I believe the attached patch fixes this bug. Ha! Just testing your attention :P. Ok, this really fixes it for me :) I apologize. diff --git a/src/sugar/graphics/roundbox.py b/src/sugar/graphics/roundbox.py index 573344e..65ebb1d 100644 --- a/src/sugar/graphics/roundbox.py +++ b/src/sugar/graphics/roundbox.py @@ -26,8 +26,8 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem): _BORDER_DEFAULT = style.LINE_WIDTH -def __init__(self, **kwargs): -hippo.CanvasBox.__init__(self, **kwargs) +def __init__(self, border_color=style.COLOR_BLACK.get_int(), **kwargs): +hippo.CanvasBox.__init__(self, border_color=border_color,**kwargs) # TODO: we should calculate radius depending on the height of the box. self._radius = style.zoom(10) @@ -36,7 +36,6 @@ class CanvasRoundBox(hippo.CanvasBox, hippo.CanvasItem): self.props.border = self._BORDER_DEFAULT self.props.border_left = self._radius self.props.border_right = self._radius -self.props.border_color = style.COLOR_BLACK.get_int() def do_paint_background(self, cr, damaged_box): [width, height] = self.get_allocation() ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar