[ekg2-commit] r4121 - trunk/ekg: trunk/ekg/events.c trunk/ekg/themes.c

SVN commit svn w toxygen.net
Czw, 17 Lip 2008, 20:46:42 CEST


Author: wiechu
Date: 2008-07-17 20:46:41 +0200 (Thu, 17 Jul 2008)
New Revision: 4121

Modified:
   trunk/ekg/events.c
   trunk/ekg/themes.c
Log:
    fix print_window_w() callings

Modified: trunk/ekg/events.c
===================================================================
--- trunk/ekg/events.c	2008-07-17 16:51:24 UTC (rev 4120)
+++ trunk/ekg/events.c	2008-07-17 18:46:41 UTC (rev 4121)
@@ -413,15 +413,13 @@
 			char *ts = xstrdup(timestamp("%d %b %Y"));
 
 			for (w = windows; w; w = w->next) {
-				int oldact;
 				
-				if (!w || w->id == 0 || w->floating) continue; /* skip __debug && (floatings windows [__lastlog, __contacts, ...]) */
+				if (!w || w->id == 0 || w->floating)
+					continue; /* skip __debug && (floatings windows [__lastlog, __contacts, ...]) */
 
-				oldact = w->act;	/* save old act */
 				w->lock++;		/* lock window */
-				print_window_w(w, 0, "day_changed", ts);
+				print_window_w(w, EKG_WINACT_NONE, "day_changed", ts);
 				w->lock--;		/* unlock window */
-				w->act = oldact;	/* restore old act */
 			}
 			xfree(ts);
 

Modified: trunk/ekg/themes.c
===================================================================
--- trunk/ekg/themes.c	2008-07-17 16:51:24 UTC (rev 4120)
+++ trunk/ekg/themes.c	2008-07-17 18:46:41 UTC (rev 4121)
@@ -871,8 +871,8 @@
 	/* [FOR 3) and 4)] If we create window or we change target. notify user */
 
 	print("window_id_query_started", itoa(w->id), target, session_name(session));
-	print_window_w(w, 1, "query_started", target, session_name(session));
-	print_window_w(w, 1, "query_started_window", target);
+	print_window_w(w, EKG_WINACT_JUNK, "query_started", target, session_name(session));
+	print_window_w(w, EKG_WINACT_JUNK, "query_started_window", target);
 
 	xfree(newtarget);
 



Więcej informacji o liście dyskusyjnej ekg2-commit