{#} Replies are directed back to [EMAIL PROTECTED]
{#} To reply to the author, write to Jason Townsend <[EMAIL PROTECTED]>
This constant is used to determine how often Fire checks whether it
should go idle or stop being idle. (This timer is set up in
MainController.m).
I agree that this should be a preference, but we need a new constant for
the preference which should be used instead of 600.
-Jason
--
Have a question? Have you read my Fire Frequently Asked Questions?
<http://homepage.mac.com/townsend/programs/fire.html>
On Saturday, May 25, 2002, at 05:03 AM, Apu wrote:
> The IDLE_TIME_SEC constant is defined in Defines.h but does not appear
> to
> be used anywhere in the code. I believe the following patch should fix
> that. It seems to work okay for me but I don't know the code well
> enough
> to say for sure. Perhaps someone who does could review it and, if it
> looks right, commit it to CVS?
>
> Ideally, the idle time value should be a preference but I don't know
> enough about designing Mac OS X UI-stuff to be of any help there. But,
> at
> least this lets me more easily adjust the idle settings (just in
> Defines.h
> file instead of throughout the code) since the default of 10 minutes is
> too soon for me. (Just because I didn't touch the keyboard or mouse
> does
> not mean I am idle.)
>
> Thanks for your consideration,
>
>
>
> Index: fire/Defines.h
> ===================================================================
> RCS file: /cvsroot/fire/fire/Defines.h,v
> retrieving revision 1.72
> diff -r1.72 Defines.h
> 100a101
>> #define IDLE_TIME_SEC 600
> 377,378d377
> <
> < #define IDLE_TIME_SEC 2
> Index: fire/MainController.m
> ===================================================================
> RCS file: /cvsroot/fire/fire/MainController.m,v
> retrieving revision 1.127
> diff -r1.127 MainController.m
> 1711c1711
> < [communicationController setStatus:IDLE idleTime:600];
> ---
>> [communicationController setStatus:IDLE
>> idleTime:IDLE_TIME_SEC];
> 1755,1756c1755
> < // 10 minutes
> < if ((idleTime > (600.0)) && !idle && !inAwayState) {
> ---
>> if ((idleTime > (IDLE_TIME_SEC)) && !idle && !inAwayState) {
> 1758c1757
> < } else if (idle && !(idleTime > 600.0)) {
> ---
>> } else if (idle && !(idleTime > IDLE_TIME_SEC)) {
> Index: fire/firetalk/toc.c
> ===================================================================
> RCS file: /cvsroot/fire/fire/firetalk/toc.c,v
> retrieving revision 1.21
> diff -r1.21 toc.c
> 56a57
>> #include "Defines.h"
> 1184c1185
> < if (time(NULL) - conn->lasttalk >= 600) {
> ---
>> if (time(NULL) - conn->lasttalk >= IDLE_TIME_SEC) {
> 1213c1214
> < if (time(NULL) - conn->lasttalk >= 600) {
> ---
>> if (time(NULL) - conn->lasttalk >= IDLE_TIME_SEC) {
> 1822c1823
> < if (idle < 600) {
> ---
>> if (idle < IDLE_TIME_SEC) {
>
>
> {#} ----------------------------------------------------+[ fire ]+---
>
>
{#} ----------------------------------------------------+[ fire ]+---