Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Tomeu Vizoso
Hi Martin,

I was hoping the frame clock could be implemented as a device icon
extension, so people could add it, remove it and customize it more
easily. Why is it inside the shell instead?

Btw, do you want me to ask in olpc-sur how people already using 8.2
would like the clock to look like?

Thanks,

Tomeu

On Wed, Apr 29, 2009 at 20:31, Martin Dengler mar...@martindengler.com wrote:
 ---
  src/jarabe/frame/clock.py |  108 
 +
  src/jarabe/frame/frame.py |    7 +++
  2 files changed, 115 insertions(+), 0 deletions(-)
  create mode 100644 src/jarabe/frame/clock.py

 diff --git a/src/jarabe/frame/clock.py b/src/jarabe/frame/clock.py
 new file mode 100644
 index 000..ea8dbb2
 --- /dev/null
 +++ b/src/jarabe/frame/clock.py
 @@ -0,0 +1,108 @@
 +# Copyright (C) 2008 Martin Dengler
 +#
 +# This program is free software; you can redistribute it and/or modify
 +# it under the terms of the GNU General Public License as published by
 +# the Free Software Foundation; either version 2 of the License, or
 +# (at your option) any later version.
 +#
 +# This program is distributed in the hope that it will be useful,
 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 +# GNU General Public License for more details.
 +#
 +# You should have received a copy of the GNU General Public License
 +# along with this program; if not, write to the Free Software
 +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 +
 +from gettext import gettext as _
 +import gconf
 +
 +import gtk
 +import gtk.gdk
 +import pango
 +import pangocairo
 +import time
 +
 +from sugar.graphics import style
 +from sugar.graphics.toolbutton import ToolButton
 +from sugar.graphics.xocolor import XoColor
 +
 +
 +CLOCK_TEXT_FONT = Bitstream Vera Sans 36
 +
 +
 +class TextIcon(gtk.Image):
 +    def __init__(self, *args, **kwargs):
 +        gtk.Image.__init__(self, *args, **kwargs)
 +        client = gconf.client_get_default()
 +        mycolor = XoColor(client.get_string('/desktop/sugar/user/color'))
 +        self._fill_rgba = style.Color(mycolor.fill).get_rgba()
 +        self._stroke_rgba = style.Color(mycolor.stroke).get_rgba()
 +
 +    def my_expose_event(self, widget_, event):
 +        x, y, w, h = event.area
 +        cr = self.window.cairo_create()
 +        redraw_region = gtk.gdk.region_rectangle(self.allocation)
 +        exposed_region = gtk.gdk.region_rectangle(event.area)
 +        redraw_region.intersect(exposed_region)
 +        cr.region(redraw_region)
 +        cr.clip()
 +        x, y, w_, h_ = self.allocation
 +        cr.translate(x, y)
 +        self.texticon_draw(cr)
 +
 +    def write(self, cr, text, x=0, y=0, font=None):
 +        cr.save()
 +        pcr = pangocairo.CairoContext(cr)
 +        layout = pcr.create_layout()
 +        if font is None:
 +            font = CLOCK_TEXT_FONT
 +        layout.set_font_description(pango.FontDescription(font))
 +        layout.set_markup(text)
 +        if x != 0 or y != 0:
 +            cr.move_to(x, y)
 +        pcr.layout_path(layout)
 +        cr.set_source_rgba(*self._stroke_rgba)
 +        cr.set_line_width(0.5)
 +        cr.stroke_preserve()
 +        cr.set_source_rgba(*self._fill_rgba)
 +        cr.fill()
 +        cr.restore()
 +        self.set_size_request(*layout.get_pixel_size())
 +
 +    def texticon_draw(self, cr):
 +        
 +        draw the widget on the provided cairo surface
 +
 +        Should be overridden by subclasses; example:
 +
 +        def texticon_draw(self, cr):
 +            self.write(cr, time.strftime(_(%m/%d %H:%M), time.localtime()))
 +        
 +        raise Exception(TextIcon.texticon_draw(): subclasses must
 +                         override this method)
 +
 +
 +class DigitalClock(TextIcon):
 +    def texticon_draw(self, cr):
 +        self.write(cr, time.strftime(_(%m/%d %H:%M), time.localtime()))
 +
 +
 +class DigitalClockTrayItem(ToolButton):
 +
 +    FRAME_POSITION_RELATIVE = 50 # all the way on the right
 +
 +    def __init__(self):
 +        ToolButton.__init__(self)
 +        self._icon = DigitalClock()
 +        self.set_icon_widget(self._icon)
 +
 +        # TODO: consider what happens when composite manager is involved
 +        self.connect(expose-event, self._icon.my_expose_event)
 +
 +        self.props.sensitive = False
 +        self._icon.show()
 +
 +
 +def setup(tray):
 +    tray.add_device(DigitalClockTrayItem())
 diff --git a/src/jarabe/frame/frame.py b/src/jarabe/frame/frame.py
 index 0bb8d92..79b508b 100644
 --- a/src/jarabe/frame/frame.py
 +++ b/src/jarabe/frame/frame.py
 @@ -190,6 +190,13 @@ class Frame(object):
                 hippo.PACK_EXPAND)
         activities_tray.show()

 +        import sys; sys.path.insert(0, .)
 +        from clock import DigitalClockTrayItem as clock
 +        clockwidget = clock()
 +        panel.append(hippo.CanvasWidget(widget=clockwidget), 

Re: [Sugar-devel] Keyboard shortcuts

2009-05-02 Thread Tomeu Vizoso
On Fri, May 1, 2009 at 22:52, Jameson Quinn jameson.qu...@gmail.com wrote:
 Martin:

 1. What I think we're talking about:

 You're right. While I actually think that, with a cheatsheet, alt-f is
 slightly *more* discoverable (though less convenient/accessible) than F9,
 your point is good. Let's stop fighting for now and see what others say.

I'm having a bit of trouble following these long conversations about
so many different issues. While I see a reason for Jameson to present
these as a single unit, perhaps we should fork the threads more
happily. Otherwise is very easy to misunderstand what people are
saying and difficult to track who is saying what.

I think Jameson's goals are interesting, but in order to know if they
are worth, we need to know how much maintenance cost they will bring.
Jameson, if you have already code available, can you share it with us?
No need to be finished, just need to make an idea of what's going to
take implementing your proposal.

Thanks,

Tomeu


 

 I do have a question about implementation, though:

 homunq I can use a custom gtk signal from the top level window to send
 show-shortcuts and hide-shortcuts signals. But I don't know if this is
 the right design. Is there a way to register a custom signal for all
 top-level windows, even non-pygdk ones? Is there a way for non-pygdk ones to
 ever hear it?
 [13:13] homunq Or do I have to take a detour through DBUS and then back to
 gdk? (it would just be a detour I think; I'd still alert individual controls
 through the same signalling mechanism)
 [13:15] * homunq would welcome even non-expert opinions on this question,
 because I have little idea.



 Jameson

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2009-05-02 Thread Tomeu Vizoso
On Sat, May 2, 2009 at 02:15, Dave Bauer dave.ba...@gmail.com wrote:


 On Fri, May 1, 2009 at 6:46 PM, Martin Langhoff martin.langh...@gmail.com
 wrote:

 Hi Simon, Sugaristas,

 Dave Bauer was asking where could he find recent Browse.xo releases,
 and I did a bit of browsing and googling, and couldn't find it.
 Searching my gmail inbox worked, but this isn't very generalisable.

 Specifically I am looking for Browse.xo that includes Martin's patch for the
 Moodle cookie that will run on Sugar 0.82 on an XO running OS767. Does such
 a thing exist? I tried Browse-101.xo that I found from searching google and
 that didn't work. And Browse-103 from activities.sugarlabs.org doesn't
 contain the cookie code.

I think I have some answers, but I don't know what's the best way to
write it down so interested people like Dave can found it. Please
suggest.

Source code releases: http://download.sugarlabs.org/sources/
Activity bundles: http://activities.sugarlabs.org/
Source code repositories: http://git.sugarlabs.org/

If you want to know in which version a particular piece of code
landed, you need to find the commit that brought that code in, then
see in which release it got in (look for commit messages like Release
108) and then look for a bundle with that version number.

If you don't find a bundle for that version, then please ping the
activity maintainer. In the case of Browse, it's more often
distributed as part of the system rather like an activity that can be
uninstalled, because by uninstalling Browse you lose critical
functionality.

Regards,

Tomeu

 Thanks
 Dave


  - sugarlabs' list archive is not indexed by google?
  - activities download page is wildly out of date...? (lists Browse 103!)
  - finding the git repo of Browse is rather hard :-(

 Please don't take this as a criticism -- just a note that it's
 currently rather hard to find things. Maybe sugarlabs.org is new and
 un-crawled by the big google crawler in the sky. Maybe there's
 something relatively easy you guys can do to keep the info
 up-to-date... dunno.

 (I try to keep the XS info up to date, and fail at it as well... so I
 know... )

 cheers,


 martin

 On Mon, Apr 6, 2009 at 7:37 PM, Simon Schampijer si...@schampijer.de
 wrote:
  == Source ==
 
 
  http://download.sugarlabs.org/sources/sucrose/fructose/Browse/Browse-108.tar.bz2
 
  == Fixed tickets ==
 
  * Browse hangs when trying to open file:/// #456
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff



 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] SD card / USB stick support (was: Re: [IAEP] Project Gutenberg, etc.)

2009-05-02 Thread Tomeu Vizoso
On Thu, Apr 30, 2009 at 09:50, Sascha Silbe
sascha-ml-ui-sugar-de...@silbe.org wrote:

 Following up on a discussion on iaep...

 On Wed, Apr 29, 2009 at 04:10:59PM -0500, James Simmons wrote:

 The SD card cannot do everything the Journal can do, [...]

 This is something that we should fix. The way the SD card / USB stick
 support works (in Sugar 0.82.1 on the XO) has bugged me for the past few
 days (e.g. only FAT filesystems will be usable from inside the Journal).
 Maybe it could work roughly like the following (just a brain dump):
 - automount everything, with UUID-based access (/media/by-uuid/uuid) in
 addition to the current name-based access (/media/name[_increment])
 - use flag files (empty file with well-known name, e.g.
 .sugar_datastore_ignore) on the filesystem to filter it out from the
 Journal (so it doesn't index/show the wwwoffle cache)
 - let the user unmount Journal-monitored filesystems from the command line
 (regular umount doesn't work because the fs is busy)

 This way SD cards and USB sticks can be used as both a Journal expansion and
 low-level storage expansion (using symlinks to /media/by-uuid/...), even in
 parallel (on the same device).

This has changed quite a bit in 0.84. Removable devices can be mounted
regardless of the filesystem in them, but no metadata will be saved on
the device because we don't write anything else there. Also queries
will be slower because we don't have a database with file data
indexed.

The simplest solution would be to provide a view in the journal that
is more clearly a file system layout. If we had the journal split in
action and object views, removable devices wouldn't have action views
and the object views would display the dir hierarchy.

If we want the removable device to behave like one more journal, we'll
need to store a database there. The problem is that people use to yank
these devices before all data has been written, thus corrupting these
data structures.

Regards,

Tomeu

 [book reading activity]

 [...] it would store meta info for the books, as well as the content type
 of the book (which the MIME type by itself would not be enough to do).

 What do you mean with content type if the MIME type is not enough (but
 apparently closely related)?

 CU Sascha

 --
 http://sascha.silbe.org/
 http://www.infra-silbe.de/
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iQEcBAEBAgAGBQJJ+Vg5AAoJELpz82VMF3DawB0H/0XfKa3YT1qwoLSJgTZd6GNU
 8cC30bkkvyfNPvmbehB0zhhy/fe2AIPbSjqbEQROskKvsSi89tf7Kxhw5FNwyzmy
 yG9s9rgDgCtBAFhUfyY9vTX3Q9dqtt/kGsBWlL5oZ/iUeRUuKZBQIZyHmTA2PkDp
 dGXEomn5FddbjDmWOHDQfT+zOZJPqhB/PH3ZF7Ug3Cz9VXGooiH/k0tAr02aEKX9
 HgnQ71kbo1dXx5tAiXYSSb6QBKoXWhkTKLS6WR9pIjf+HRQVUDhbLFphEHe7SRxz
 A0yf7ddiPw437e/FaGLoz7pcY8gw6tkrLhybSwAsADu1RKkA6WK1tHx+xs7cGB8=
 =ev0l
 -END PGP SIGNATURE-

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Martin Dengler
On Sat, May 02, 2009 at 10:28:06AM +0200, Tomeu Vizoso wrote:
 Hi Martin,
 
 I was hoping the frame clock could be implemented as a device icon
 extension, so people could add it, remove it and customize it more
 easily. Why is it inside the shell instead?

The code (clock.py) is in fact a device icon, and if you drop it in
/usr/share/sugar/extensions/deviceicon it'll Just Work.

It's in the shell because it's in the upper-right corner of the frame,
where I found it looks a lot better:

http://www.xades.com/proj/clock_frame_767_screenshot.png

 Btw, do you want me to ask in olpc-sur how people already using 8.2
 would like the clock to look like?

Sure!

 Thanks,
 
 Tomeu

Martin


pgp9v9hGdO1wJ.pgp
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread pgf
martin wrote:
  On Sat, May 02, 2009 at 10:28:06AM +0200, Tomeu Vizoso wrote:
   Hi Martin,
   
   I was hoping the frame clock could be implemented as a device icon
   extension, so people could add it, remove it and customize it more
   easily. Why is it inside the shell instead?
  
  The code (clock.py) is in fact a device icon, and if you drop it in
  /usr/share/sugar/extensions/deviceicon it'll Just Work.
  
  It's in the shell because it's in the upper-right corner of the frame,
  where I found it looks a lot better:
  
  http://www.xades.com/proj/clock_frame_767_screenshot.png

sounds like there is, but to be sure:  it's easy for people to
remove or disable if they don't like having a stopped clock on
their screen during idle suspend on an XO?

paul
=-
 paul fox, p...@laptop.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2009-05-02 Thread Jonas Smedegaard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, May 01, 2009 at 06:04:06PM -0500, David Farning wrote:
The conical source of information on activities _should_ be 
activities.download.org.  What activities download page were you 
looking at?  They should all be pointing to activities.sugarlabs.org.

All activity information?  Also branches? Even unofficial branches?

Seems to me that activities.sugarlabs.org is for latest stable official 
upstream releases only, a wiki page makes sense for any additional info, 
e.g. odd branches, relevant for _some_ users, while development info 
might be scattered at wiki pages, mailinglists and git commit comments.


Kind regards,

   - Jonas

- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

   [x] quote me freely  [ ] ask before reusing  [ ] keep private
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn8OzoACgkQn7DbMsAkQLjF5gCfRmZkZTGmvRAHzwnvt2zm+S/K
gGkAoILmpQqUxiNOK9PTlDjf5mhWiFeo
=APCh
-END PGP SIGNATURE-
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Eben Eliason
On Sat, May 2, 2009 at 7:04 AM, Martin Dengler mar...@martindengler.com wrote:
 On Sat, May 02, 2009 at 10:28:06AM +0200, Tomeu Vizoso wrote:
 Hi Martin,

 I was hoping the frame clock could be implemented as a device icon
 extension, so people could add it, remove it and customize it more
 easily. Why is it inside the shell instead?

 The code (clock.py) is in fact a device icon, and if you drop it in
 /usr/share/sugar/extensions/deviceicon it'll Just Work.

 It's in the shell because it's in the upper-right corner of the frame,
 where I found it looks a lot better:

Hmmm, but this breaks the paradigm of the frame; I think Sugar should
only officially support a clock in the devices tray. Simple hacks, of
course, could allow people to change it to other corners, but I don't
think it should even be an option, officially.

 http://www.xades.com/proj/clock_frame_767_screenshot.png

Also, the clock takes up a significant amount of space. Can we use the
normal paradigm for device icons instead? If the clock simply read
12:34 and then additional information, such as the day and date,
appeared within the palette, along with options for, perhaps, 12 or 24
hour time, etc. I think it would be a lot cleaner. I'd also recommend
putting the text against a filled background, instead of the frame
itself, to give it presence as a device object, and not just some text
floating in the Frame.

That said, great work on adding a clock! If I get a chance I could try
mocking up some visual treatments.

Eben


 Btw, do you want me to ask in olpc-sur how people already using 8.2
 would like the clock to look like?

 Sure!

 Thanks,

 Tomeu

 Martin

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] LiveUSB-creator 3.6.5 may fail silently on Windows

2009-05-02 Thread Tomeu Vizoso
On Tue, Apr 28, 2009 at 01:42, Frederick Grose fgr...@gmail.com wrote:
 In Windows Vista32, I found that LiveUSB-creator 3.6.5 reported success in
 creating a Sugar Stick from Soas2-200904231400.iso, but the image failed to
 boot.

Could you please enter a ticket in https://bugzilla.redhat.com/ ?
Would be product Fedora and component liveusb-creator.

Thanks,

Tomeu

 In Ubuntu 9.04 (Jackalope64) I then tried Sebastien's livecd-iso-to-disk.sh
 script from 09 April 2009
 (http://people.sugarlabs.org/sdz/livecd-iso-to-disk.sh), on the same .iso
 file and found that it failed the verify:

 Soas2-200904231400.iso:   065249f7642bfec4cd0da94aa99e2f8d
 Fragment sums: f509dc7ac19135f235da547918cc3ee813c47fabc597f96145c5b8727594
 Fragment count: 20
 Checking: 100.0%

 The media check is complete, the result is: FAIL.

 So, some of the SoaS boot problems may be traced to files that may have been
 corrupted before final use.

  --Fred

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] LiveUSB-creator 3.6.5 may fail silently on Windows

2009-05-02 Thread Frederick Grose
Would this trac instance serve the same purpose?:
https://fedorahosted.org/liveusb-creator/ticket/613

I've put a caution on this page for users,
http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Windows

 --Fred

On Sat, May 2, 2009 at 11:39 AM, Tomeu Vizoso to...@sugarlabs.org wrote:
 On Tue, Apr 28, 2009 at 01:42, Frederick Grose fgr...@gmail.com wrote:
 In Windows Vista32, I found that LiveUSB-creator 3.6.5 reported success
in
 creating a Sugar Stick from Soas2-200904231400.iso, but the image failed
to
 boot.

 Could you please enter a ticket in https://bugzilla.redhat.com/ ?
 Would be product Fedora and component liveusb-creator.

 Thanks,

 Tomeu

 In Ubuntu 9.04 (Jackalope64) I then tried Sebastien's
livecd-iso-to-disk.sh
 script from 09 April 2009
 (http://people.sugarlabs.org/sdz/livecd-iso-to-disk.sh), on the same .iso
 file and found that it failed the verify:

 Soas2-200904231400.iso:   065249f7642bfec4cd0da94aa99e2f8d
 Fragment sums:
f509dc7ac19135f235da547918cc3ee813c47fabc597f96145c5b8727594
 Fragment count: 20
 Checking: 100.0%

 The media check is complete, the result is: FAIL.

 So, some of the SoaS boot problems may be traced to files that may have
been
 corrupted before final use.

  --Fred

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] LiveUSB-creator 3.6.5 may fail silently on Windows

2009-05-02 Thread Tomeu Vizoso
On Sat, May 2, 2009 at 18:16, Frederick Grose fgr...@gmail.com wrote:
 Would this trac instance serve the same purpose?:
 https://fedorahosted.org/liveusb-creator/ticket/613

Yeah, it may be better.

 I've put a caution on this page for users,
 http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Windows

Thanks!

Tomeu

  --Fred

 On Sat, May 2, 2009 at 11:39 AM, Tomeu Vizoso to...@sugarlabs.org wrote:
 On Tue, Apr 28, 2009 at 01:42, Frederick Grose fgr...@gmail.com wrote:
 In Windows Vista32, I found that LiveUSB-creator 3.6.5 reported success
 in
 creating a Sugar Stick from Soas2-200904231400.iso, but the image failed
 to
 boot.

 Could you please enter a ticket in https://bugzilla.redhat.com/ ?
 Would be product Fedora and component liveusb-creator.

 Thanks,

 Tomeu

 In Ubuntu 9.04 (Jackalope64) I then tried Sebastien's
 livecd-iso-to-disk.sh
 script from 09 April 2009
 (http://people.sugarlabs.org/sdz/livecd-iso-to-disk.sh), on the same .iso
 file and found that it failed the verify:

 Soas2-200904231400.iso:   065249f7642bfec4cd0da94aa99e2f8d
 Fragment sums:
 f509dc7ac19135f235da547918cc3ee813c47fabc597f96145c5b8727594
 Fragment count: 20
 Checking: 100.0%

 The media check is complete, the result is: FAIL.

 So, some of the SoaS boot problems may be traced to files that may have
 been
 corrupted before final use.

  --Fred

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel





___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Sugar on Nokia N810

2009-05-02 Thread Sameer Verma
One of my all time favorite devices gets one of my all time favorite
environments! Read on.
http://guysoft.wordpress.com/2009/05/01/nokia-n810-running-olpc-sugar/

cheers,
Sameer
-- 
Dr. Sameer Verma, Ph.D.
Associate Professor of Information Systems
San Francisco State University
San Francisco CA 94132 USA
http://verma.sfsu.edu/
http://opensource.sfsu.edu/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Martin Dengler
On Sat, May 02, 2009 at 10:49:05AM -0400, Eben Eliason wrote:
 On Sat, May 2, 2009 at 7:04 AM, Martin Dengler mar...@martindengler.com 
 wrote:
  On Sat, May 02, 2009 at 10:28:06AM +0200, Tomeu Vizoso wrote:
  Hi Martin,
 
  I was hoping the frame clock could be implemented as a device icon
  extension, so people could add it, remove it and customize it more
  easily. Why is it inside the shell instead?
 
  The code (clock.py) is in fact a device icon, and if you drop it in
  /usr/share/sugar/extensions/deviceicon it'll Just Work.
 
  It's in the shell because it's in the upper-right corner of the frame,
  where I found it looks a lot better:
 
 Hmmm, but this breaks the paradigm of the frame

Well, I agree it breaks the paradigm, but it's a shame to let all that
nice space on the top right go spare.  I'm happy to have it hacked
there on my build, of course.

 I think Sugar should only officially support a clock in the devices
 tray.

What FRAME_RELATIVE_POSITION would you like it in?

 Also, the clock takes up a significant amount of space.

That's the advantage of putting it in the upper right where there's
lots of space :).  I like seeing the Month/Day, but of course that's
me.  I think the code is simple enough that that customisation can
just be hacked in (as other commenters have seemed satisfied with),
rather than spending time and effort designing and supporting some
sort of monster clock-configuration dbus-communicating control-panel.

 [clock should be HH:MM with additional information in the palette]

Sure

 I'd also recommend putting the text against a filled background

Will do.

 If I get a chance I could try mocking up some visual treatments.

Cool - anything you get a chance to put together would be nice.

 Eben

Martin



pgpAKOu8ZMWX9.pgp
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Martin Dengler
On Sat, May 02, 2009 at 08:08:29AM -0400, p...@laptop.org wrote:
 sounds like there is, but to be sure:  it's easy for people to
 remove or disable if they don't like having a stopped clock on
 their screen during idle suspend on an XO?

The clock refreshes itself when the Frame is shown, so it's no worse
than the wireless, wired, speaker, battery, clipboard, friends list,
etc. icons stopping when idle suspend happens :).

But I take your point...the answer is: no, it's not easy (with my
simple patch).  I'm not sure what the behavior should be (hide on
idle?!, come out of suspend once a minute?!), really.  I'm quite
tempted to say: it's just as fine as the battery icon not updating
during idle suspend.

When we come *out* of idle suspend the clock should update, and I bet
it currently does not.  That seems like a more serious problem with my
patch.

 paul

Martin


pgpFVdqfrINhk.pgp
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] add clock to frame

2009-05-02 Thread Martin Dengler
On Sat, May 02, 2009 at 07:43:36AM -0500, Jameson Quinn wrote:
 In other words, IMO this should be two patches: a clock device icon; and the
 ability to put device icons in lower left, lower right, or upper
 right.

Fair enough.

 now-I-can-go-back-to-building-my-own-bikeshed-ly y'rs,

;)

 Jameson

Martin


pgpMetFaHxrNL.pgp
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2009-05-02 Thread Jonas Smedegaard
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, May 02, 2009 at 11:30:22AM -0500, David Farning wrote:
On Sat, May 2, 2009 at 7:23 AM, Jonas Smedegaard d...@jones.dk wrote:
 On Fri, May 01, 2009 at 06:04:06PM -0500, David Farning wrote:
The conical source of information on activities _should_ be 
activities.download.org.  What activities download page were you 
looking at?  They should all be pointing to activities.sugarlabs.org.

 All activity information?  Also branches? Even unofficial branches?

When uploading a activity to activities.sugarlabs.org there is an
entry to a Homepage.  I would guess that the home page would be the
source of at latest developer information.

This gives users a very consistent download experience while directing
developers to a more free form development space.

I think we talk past each other.  Sorry if this is obvious to everyone 
but me:

Do activities.sugarlabs.org support multiple branches of each activity?

Concrete example (which I suspect triggered this subthread): Unofficial 
Browse 102 for Sugar 0.82 is currently at 
http://dev.laptop.org/~dsd/py-activities/Browse-102.xo but Tomeu 
suggested to use an official URL if more people would care about 
maintaining it.


   - Jonas

- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

   [x] quote me freely  [ ] ask before reusing  [ ] keep private
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn8ijIACgkQn7DbMsAkQLgvPgCgkHyxtwIwfA2ApK2KXJVRwJvn
8oMAoIgGNGPiCRzUuCw81YpTynkj4xJt
=BW06
-END PGP SIGNATURE-
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2009-05-02 Thread David Farning
On Sat, May 2, 2009 at 1:00 PM, Jonas Smedegaard d...@jones.dk wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Sat, May 02, 2009 at 11:30:22AM -0500, David Farning wrote:
On Sat, May 2, 2009 at 7:23 AM, Jonas Smedegaard d...@jones.dk wrote:
 On Fri, May 01, 2009 at 06:04:06PM -0500, David Farning wrote:
The conical source of information on activities _should_ be
activities.download.org.  What activities download page were you
looking at?  They should all be pointing to activities.sugarlabs.org.

 All activity information?  Also branches? Even unofficial branches?

When uploading a activity to activities.sugarlabs.org there is an
entry to a Homepage.  I would guess that the home page would be the
source of at latest developer information.

This gives users a very consistent download experience while directing
developers to a more free form development space.

 I think we talk past each other.  Sorry if this is obvious to everyone
 but me:

 Do activities.sugarlabs.org support multiple branches of each activity?

 Concrete example (which I suspect triggered this subthread): Unofficial
 Browse 102 for Sugar 0.82 is currently at
 http://dev.laptop.org/~dsd/py-activities/Browse-102.xo but Tomeu
 suggested to use an official URL if more people would care about
 maintaining it.

Ahh, sorry I misunderstood.  Activities.sugarlabs.org does support
multiple concurrent versions of an activity.  This is how amo updates
addons for the various versions of Firefox.  I don't clearly
understand how the system works.  But it is possiable to set a
specific activity version as working for a version of sugar.

david

   - Jonas

 - --
 * Jonas Smedegaard - idealist og Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

   [x] quote me freely  [ ] ask before reusing  [ ] keep private
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkn8ijIACgkQn7DbMsAkQLgvPgCgkHyxtwIwfA2ApK2KXJVRwJvn
 8oMAoIgGNGPiCRzUuCw81YpTynkj4xJt
 =BW06
 -END PGP SIGNATURE-
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2009-05-02 Thread Martin Langhoff
On Sat, May 2, 2009 at 8:29 PM, David Farning dfarn...@sugarlabs.org wrote:
 Ahh, sorry I misunderstood.  Activities.sugarlabs.org does support
 multiple concurrent versions of an activity.  This is how amo updates
 addons for the various versions of Firefox.  I don't clearly
 understand how the system works.  But it is possiable to set a
 specific activity version as working for a version of sugar.

Excellent. Then we need to coord with Simon about making sure that the
latest Browse for 8.2 is listed there too :-)



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel