Mercurial > geeqie
diff src/pan-view.c @ 506:fc9c8a3e1a8b
Handle the newline in DEBUG_N() macro instead of adding one
in each debug message string.
author | zas_ |
---|---|
date | Thu, 24 Apr 2008 00:15:03 +0000 |
parents | a33badd85f16 |
children | 135570a8bd96 |
line wrap: on
line diff
--- a/src/pan-view.c Wed Apr 23 23:52:20 2008 +0000 +++ b/src/pan-view.c Thu Apr 24 00:15:03 2008 +0000 @@ -773,7 +773,7 @@ row = row * 2 - 1; col = col * 2 - 1; - DEBUG_1("intersect speedup grid is %dx%d, based on %d average per grid\n", col, row, grid_size); + DEBUG_1("intersect speedup grid is %dx%d, based on %d average per grid", col, row, grid_size); for (j = 0; j < row; j++) for (i = 0; i < col; i++) @@ -791,7 +791,7 @@ pw->list_grid = g_list_prepend(pw->list_grid, pg); - DEBUG_1("grid section: %d,%d (%dx%d)\n", pg->x, pg->y, pg->w, pg->h); + DEBUG_1("grid section: %d,%d (%dx%d)", pg->x, pg->y, pg->w, pg->h); } } @@ -961,7 +961,7 @@ pan_cache_free(pw); - DEBUG_1("computed %d objects\n", g_list_length(pw->list)); + DEBUG_1("computed %d objects", g_list_length(pw->list)); } static GList *pan_layout_intersect_l(GList *list, GList *item_list, @@ -1117,7 +1117,7 @@ { gdouble align; - DEBUG_1("Canvas size is %d x %d\n", width, height); + DEBUG_1("Canvas size is %d x %d", width, height); pan_grid_build(pw, width, height, 1000); @@ -1499,7 +1499,7 @@ if (!pi) return; - DEBUG_1("info set to %s\n", pi->fd->path); + DEBUG_1("info set to %s", pi->fd->path); pbox = pan_item_box_new(pw, NULL, pi->x + pi->width + 4, pi->y, 10, 10, PAN_POPUP_BORDER,