Re: How to identify the idle state of the GTK+ application?



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]