Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2011-01-26 Thread Erik Blankinship
On Mon, Dec 20, 2010 at 12:56 AM, Bakhtiar Mikhak mik...@mediamods.comwrote: The specific practical considerations on the XO to which I was referring has to do with the documented bug with xvimagesink and UI rotations. Even with the rest of the UI designed to handle rotations gracefully, this

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2011-01-26 Thread Jon Nettleton
Is there really no way to know when the Record activity is upside down on the 10.1.3 xo (and as a result xvimagesink in the wrong place)? Your question is a bit unclear so here are a few scenarios and answers. If you are looking to query what the current rotation of the screen is then you

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-19 Thread Bakhtiar Mikhak
Paul, thank you for taking the time to share your thoughts. A couple of points: The specific practical considerations on the XO to which I was referring has to do with the documented bug with xvimagesink and UI rotations. Even with the rest of the UI designed to handle rotations gracefully,

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-13 Thread Bakhtiar Mikhak
On Dec 10, 2010, at 6:09 PM, James Cameron wrote: On Fri, Dec 10, 2010 at 05:50:54PM -0500, Bakhtiar Mikhak wrote: If I am reading the current version of HIG correctly, it is not a requirement for developers to implement a portrait layout for their activity: Screen Rotation While in

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-13 Thread Paul Fox
...there are however practical considerations on XOs that lead us to want to disable UI rotation. ... i guess i don't understand how this would work in practical terms. i'm using my XO, and, at the home screen, i push the rotate button, and start playing with it in portrait mode. i bring

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-13 Thread James Cameron
On Mon, Dec 13, 2010 at 01:12:04PM -0500, Bakhtiar Mikhak wrote: On Dec 10, 2010, at 6:09 PM, James Cameron wrote: On Fri, Dec 10, 2010 at 05:50:54PM -0500, Bakhtiar Mikhak wrote: If I am reading the current version of HIG correctly, it is not a requirement for developers to implement a

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-10 Thread Erik Blankinship
Thank you for these suggestions. It is sometimes a designer's prerogative to present their work in one format. Numerous examples are available on the iPhone and android markets. Is it possible to override or be notified of a rotation signal? Or is the answer to really remap the display and

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-10 Thread James Simmons
Erik, Here is how you can be notified when the screen is rotated: First, listen for the expose event in PyGTK: self.connect(expose_event, self.area_expose_cb) Here is the method that gets invoked: def area_expose_cb(self, area, event): screen_width = gtk.gdk.screen_width()

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-10 Thread Bakhtiar Mikhak
On Dec 10, 2010, at 5:14 PM, James Cameron wrote: On Fri, Dec 10, 2010 at 04:29:31PM -0500, Erik Blankinship wrote: It is sometimes a designer's prerogative to present their work in one format. Numerous examples are available on the iPhone and android markets. It is sometimes a

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-09 Thread James Simmons
Erik, If you use PyGTK to develop your Activity there are Layouts which will arrange your controls on the screen to make the best use of the available space. In this way the app is still usable with the screen rotated. In View Slides I detect when the screen dimensions change and resize the