From: David B. <dbl...@ho...> - 2002-08-05 22:30:23
|
Hi. I use gaim_applet in a vnc session, which for some reason means X = always reports 0 idle time. So I'm pretty much forced to use gaim's = idle time, which I consider broken in its current state. The idle time = should not just be the time since the last message sent, but rather = since the last interaction with gaim. At the very least, there should = be a convenient way to reset it to 0 other than to send myself an IM. =20 So I downloaded the source and hacked in this functionality. Basically, = clicking on the applet button sets a global that I put in and the idle = time is based on this time, not on the time since the last message. So = the applet button becomes the way to set the idle time to 0. Here is applet.c.diff: 312a313 > #include <time.h> 314a316 > last_clicked=3Dtime(NULL); Here is gaim.h.diff: 24a25,26 > extern unsigned int last_clicked; >=20 Here is idle.c.diff: 39a40 > unsigned int last_clicked=3D0; 71c72,76 < idle_time =3D t - gc->lastsent; --- > //idle_time =3D t - gc->lastsent; > if(last_clicked=3D=3D0) > idle_time=3Dt-gc->lastsent; > else > idle_time=3Dt-last_clicked; Bon Apetit. Dave. |