# HG changeset patch # User zas_ # Date 1208213450 0 # Node ID e0295af4f716e75f1f3b669b3d628d3d78b0e052 # Parent 822040a51249dbf50eb289d10f2453f723c4519e collection_load(): replace official by limit_failures (and invert the tests). diff -r 822040a51249 -r e0295af4f716 src/collect-io.c --- a/src/collect-io.c Mon Apr 14 22:45:53 2008 +0000 +++ b/src/collect-io.c Mon Apr 14 22:50:50 2008 +0000 @@ -57,7 +57,7 @@ gchar s_buf[GQ_COLLECTION_READ_BUFSIZE]; FILE *f; gchar *pathl; - gint official = FALSE; + gint limit_failures = TRUE; gint success = TRUE; guint total = 0; guint fail = 0; @@ -112,7 +112,7 @@ * which is needed for the collection manager to work. * Also unofficial files abort after too many invalid entries. */ - official = TRUE; + limit_failures = FALSE; } else if (strncmp(s_buf, "#geometry:", 10 ) == 0 && scan_geometry(s_buf + 10, &cd->window_x, &cd->window_y, &cd->window_w, &cd->window_h) ) @@ -128,7 +128,7 @@ { /* As 2008/04/15 there is no difference between our collection file format * and GQview 2.1.5 collection file format so ignore failures as well. */ - official = TRUE; + limit_failures = FALSE; } continue; } @@ -146,7 +146,7 @@ g_free(buf); total++; - if (!valid && !official) + if (!valid && limit_failures) { fail++; if (fail > GQ_COLLECTION_FAIL_MIN &&