diff src/pan-view.c @ 99:d19b0de6d0bb

Sat Nov 4 17:14:47 2006 John Ellis <johne@verizon.net> * pan-view.c: Always recalculate canvas size when displaying popups. * README: Updates. * po/eo.po: Mark translation for 'Command Line' not fuzzy. * configure.in: Release 2.1.4 (quick bug fix for pan view).
author gqview
date Sat, 04 Nov 2006 22:24:47 +0000
parents ddde49aace00
children 73443803ea59
line wrap: on
line diff
--- a/src/pan-view.c	Sat Nov 04 15:41:42 2006 +0000
+++ b/src/pan-view.c	Sat Nov 04 22:24:47 2006 +0000
@@ -672,7 +672,7 @@
 	row = row * 2 - 1;
 	col = col * 2 - 1;
 
-	printf("intersect speedup grid is %dx%d, based on %d average per grid\n", col, row, grid_size);
+	if (debug) printf("intersect speedup grid is %dx%d, based on %d average per grid\n", col, row, grid_size);
 
 	for (j = 0; j < row; j++)
 	    for (i = 0; i < col; i++)
@@ -2499,7 +2499,7 @@
 
 	pan_cache_free(pw);
 
-	printf("computed %d objects\n", g_list_length(pw->list));
+	if (debug) printf("computed %d objects\n", g_list_length(pw->list));
 }
 
 static GList *pan_layout_intersect_l(GList *list, GList *item_list,
@@ -3340,7 +3340,7 @@
 		{
 		gdouble align;
 
-		printf("Canvas size is %d x %d\n", width, height);
+		if (debug) printf("Canvas size is %d x %d\n", width, height);
 
 		pan_grid_build(pw, width, height, 1000);
 
@@ -3930,10 +3930,10 @@
 
 			pan_item_box_shadow(pbox, PAN_SHADOW_OFFSET * 2, PAN_SHADOW_FADE * 2);
 			pan_item_added(pw, pbox);
-
-			pan_layout_resize(pw);
 			}
 		}
+
+	pan_layout_resize(pw);
 }