diff src/server.c @ 1026:5bad25457843

[gaim-migrate @ 1036] X-Idle support. Thanks bryner and bmiller! Both of you guys sent me similar patches :) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 26 Oct 2000 07:22:32 +0000
parents c3579d03a0c1
children 38452403563b
line wrap: on
line diff
--- a/src/server.c	Thu Oct 26 02:12:34 2000 +0000
+++ b/src/server.c	Thu Oct 26 07:22:32 2000 +0000
@@ -31,6 +31,11 @@
 #include <unistd.h>
 #include <gtk/gtk.h>
 #include <aim.h>
+#ifdef USE_SCREENSAVER
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/extensions/scrnsaver.h>
+#endif /* USE_SCREENSAVER */
 extern int gaim_caps;
 #include "prpl.h"
 #include "multi.h"
@@ -65,7 +70,6 @@
         gc->idle_timer = -1;
 }
 
-
 void serv_touch_idle(struct gaim_connection *gc)
 {
 	/* Are we idle?  If so, not anymore */
@@ -76,35 +80,6 @@
         time(&gc->lastsent);
 }
 
-
-static gint check_idle(struct gaim_connection *gc)
-{
-	time_t t;
-
-        /* Not idle, really...  :) */
-        update_all_buddies();
-
-	plugin_event(event_blist_update, 0, 0, 0, 0);
-        
-	time(&t);
-
-	if (report_idle != IDLE_GAIM)
-                return TRUE;
-
-	
-	if (gc->is_idle)
-		return TRUE;
-
-	if ((t - gc->lastsent) > 600) { /* 15 minutes! */
-		serv_set_idle(gc, (int)t - gc->lastsent);
-		gc->is_idle = 1;
-        }
-
-	return TRUE;
-
-}
-
-
 void serv_finish_login(struct gaim_connection *gc)
 {
         char *buf;
@@ -382,13 +357,13 @@
 	serv_save_config();
 }
 
+
 void serv_set_idle(struct gaim_connection *g, int time)
 {
 	if (g->prpl && g->prpl->set_idle)
 		(*g->prpl->set_idle)(g, time);
 }
 
-
 void serv_warn(struct gaim_connection *g, char *name, int anon)
 {
 	if (g->prpl && g->prpl->warn)