{#} Replies are directed back to [EMAIL PROTECTED]
{#} To reply to the author, write to Jason Townsend <[EMAIL PROTECTED]>
> Some stuff I can't figure out:
>
> - When I go idle, Fire marks me as 'away' instead of 'idle'
> - After I go idle the first time, it seems that I go idle after only 60s
> the next time no matter what.
>
> Any hints in these areas would be helpful :) I know you're busy - doesn't
> the idle thing drive you nuts, though?
I noticed another potential idle problem while reading through some of the
many warnings you get when building Fire clean.
The prototype for aim_toc_set_idle() in AIM-tocFunctions.h and
AIM-tocFunctions.m doesn't match what the FireTalk library expects, and it
actually could be preventing the function from working at all.
Here's a diff of my fix. This also has the nice effect of eliminating the
warning about assigning to a read only location.
Index: AIM-toc//AIM-tocCFunctions.h
===================================================================
RCS file: /cvsroot/fire/fire/AIM-toc/AIM-tocCFunctions.h,v
retrieving revision 1.2
diff -u -r1.2 AIM-tocCFunctions.h
--- AIM-toc//AIM-tocCFunctions.h 2001/10/03 22:29:56 1.2
+++ AIM-toc//AIM-tocCFunctions.h 2002/01/14 14:15:34
@@ -24,7 +24,7 @@
void aim_toc_got_idle (void *c, const char * const who, const long
idletime);
-void aim_toc_set_idle (void *c, const int * const idle);
+void aim_toc_set_idle (void *c, long * const idle);
void aim_toc_eviled (void *c, const int newevil, const char * const
eviler);
Index: AIM-toc//AIM-tocCFunctions.m
===================================================================
RCS file: /cvsroot/fire/fire/AIM-toc/AIM-tocCFunctions.m,v
retrieving revision 1.11
diff -u -r1.11 AIM-tocCFunctions.m
--- AIM-toc//AIM-tocCFunctions.m 2002/01/13 01:12:37 1.11
+++ AIM-toc//AIM-tocCFunctions.m 2002/01/14 14:15:34
@@ -115,7 +115,7 @@
extern double CGSSecondsSinceLastInputEvent(unsigned long evType);
-void aim_toc_set_idle (void *c, const int * const idle) {
+void aim_toc_set_idle (void *c, long * const idle) {
*idle = CGSSecondsSinceLastInputEvent(~(unsigned long)0);
}
This obviously only applies to AIM. Haven't had a chance to really test this
yet to see how much it helps.
-Jason
--
<http://homepage.mac.com/townsend/>
"Do, or do not. There is no 'try'."
- Yoda (_The Empire Strikes Back_)
{#} ----------------------------------------------------+[ fire ]+---