Re: How to identify the idle state of the GTK+ application?
- From: Martyn Russell <martyn imendio com>
- To: gtk-app-devel-list gnome org, gtk-list gnome org
- Cc:
- Subject: Re: How to identify the idle state of the GTK+ application?
- Date: Wed, 15 Feb 2006 14:01:00 +0000
On Wed, 2006-02-15 at 17:46 +0600, sadhees kumar wrote:
Friends,
In my GTK application, If no action(event) is taken place in
the screen, I need to turn OFF the backlight of an TFT monitor. If any
key pressed, or mouse movement occured, I need to turn ON the
backlight.
I have the API for toggling the backlight. My problem is , how to
identify the idle state of the screen?
Gossip needs to know how long the user has been idle (with no mouse
movement or key presses) for setting users to an away state, this might
be useful:
http://cvs.gnome.org/viewcvs/gossip/src/gossip-idle.c?rev=1.8&view=markup
--
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]