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

2009-05-03 Thread Sascha Silbe
On Sat, May 02, 2009 at 05:39:21PM +0100, Martin Dengler wrote: [Clock behaviour in suspend] 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. With the XO

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

2009-05-03 Thread pgf
sascha wrote: On Sat, May 02, 2009 at 05:39:21PM +0100, Martin Dengler wrote: [Clock behaviour in suspend] 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

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

2009-05-03 Thread Jameson Quinn
Well, if the frame always auto-hid after 10 seconds, and the delay for idle-suspend was 15 seconds, then it would work. I personally believe that the frame should be hidden more agressively - whenever there's a user action that doesn't address it, and after a longish timeout around 10 seconds. In

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

2009-05-03 Thread pgf
jameson wrote: Well, if the frame always auto-hid after 10 seconds, and the delay for idle-suspend was 15 seconds, then it would work. I personally believe that the frame should be hidden more agressively - whenever there's a user action that doesn't address it, and after a longish timeout

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

2009-05-03 Thread Martin Dengler
On Sun, May 03, 2009 at 09:01:14AM -0400, p...@laptop.org wrote: sascha wrote: On Sat, May 02, 2009 at 05:39:21PM +0100, Martin Dengler wrote: [Clock behaviour in suspend] But I take your point...the answer is: no, it's not easy (with my simple patch). I'm not sure what the

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

2009-05-03 Thread Martin Dengler
On Mon, May 04, 2009 at 12:17:05AM +0100, Martin Dengler wrote: On Sun, May 03, 2009 at 09:01:14AM -0400, p...@laptop.org wrote: given martin's point about the battery level, wireless strength, etc, all becoming stale as well, perhaps the best fix would be to always hide the frame during

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

2009-05-03 Thread Martin Dengler
On Sat, May 02, 2009 at 05:36:12PM +0100, Martin Dengler wrote: On Sat, May 02, 2009 at 10:49:05AM -0400, Eben Eliason wrote: I think Sugar should only officially support a clock in the devices tray. What FRAME_RELATIVE_POSITION would you like it in? [clock should be HH:MM with

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

2009-05-03 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Dengler wrote: Anybody have any great ideas about how to solve the problem of what to do just before power management dims/blanks the screen, and how we would want to be notified of that? IMHO, effort is best spent moving the suspend

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

2009-05-03 Thread Jameson Quinn
Anything else is just hacks on top of hacks. I disagree. Personally, I think auto-hiding the frame after a delay is a clean solution that's desirable anyway. But I do agree that the decision of whether to hide the frame or not should not be based on stopped clocks. Jameson

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?

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

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

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

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

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

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, ;)

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

2009-04-29 Thread Martin Dengler
--- 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