Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Frantisek Dufka
Johan Bilien wrote: http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even without processing gtk/glib loop? If not is there other

RE: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Jakub.Pavelek
http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even without processing gtk/glib loop? If not is there other way how to check

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Kimmo Hämäläinen
On Wed, 2006-12-13 at 15:22 -0800, ext Aaron Levinson wrote: On Wed, 13 Dec 2006, Johan Bilien wrote: On Wed, Dec 13, 2006, Aaron Levinson wrote: In the Maemo coding style and programming guidelines document on maemo.org, it states the following: Avoid updating the GUI when the

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Tapani Pälli
ext Frantisek Dufka wrote: Johan Bilien wrote: http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even without processing

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Eero Tamminen
Hi, http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even without processing gtk/glib loop? If not is there other way how to

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Kimmo Hämäläinen
On Thu, 2006-12-14 at 11:16 +0200, ext Eero Tamminen wrote: Hi, http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread David Weinehall
On tor, 2006-12-14 at 11:01 +0200, ext Kimmo Hämäläinen wrote: On Wed, 2006-12-13 at 15:22 -0800, ext Aaron Levinson wrote: On Wed, 13 Dec 2006, Johan Bilien wrote: On Wed, Dec 13, 2006, Aaron Levinson wrote: In the Maemo coding style and programming guidelines document on

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Frantisek Dufka
Eero Tamminen wrote: I think the app loses focus when the screen is blanked. So, the SDL app could catch screen focus events and do some additional checks when that happens. Good idea, thanks. Or SDL app could always pause when it loses focus... This is good for video updates but

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Tapani Pälli
ext Frantisek Dufka wrote: Eero Tamminen wrote: I think the app loses focus when the screen is blanked. So, the SDL app could catch screen focus events and do some additional checks when that happens. Good idea, thanks. Or SDL app could always pause when it loses focus... This is good

[maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Aaron Levinson
In the Maemo coding style and programming guidelines document on maemo.org, it states the following: Avoid updating the GUI when the application running on the background and when the screen has been turned off. Remove unnecessary graphical elements or constantly updated screen components. Now,

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Johan Bilien
On Wed, Dec 13, 2006, Aaron Levinson wrote: In the Maemo coding style and programming guidelines document on maemo.org, it states the following: Avoid updating the GUI when the application running on the background and when the screen has been turned off. Remove unnecessary graphical elements

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Johan Bilien
Aaron Levinson wrote: Well, I had already examining the libosso APIs before sending the e-mail, and I did notice the system_inactivity_ind flag in the osso_hw_state_t struct. However, according to the libosso documentation, if the callback is called for system inactivity, this means that the