comparison src/view_file_icon.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 cc46a09d0805
children 135570a8bd96
comparison
equal deleted inserted replaced
505:60f75a9799b2 506:fc9c8a3e1a8b
907 t = col1; 907 t = col1;
908 col1 = col2; 908 col1 = col2;
909 col2 = t; 909 col2 = t;
910 } 910 }
911 911
912 DEBUG_1("table: %d x %d to %d x %d\n", row1, col1, row2, col2); 912 DEBUG_1("table: %d x %d to %d x %d", row1, col1, row2, col2);
913 913
914 for (i = row1; i <= row2; i++) 914 for (i = row1; i <= row2; i++)
915 { 915 {
916 for (j = col1; j <= col2; j++) 916 for (j = col1; j <= col2; j++)
917 { 917 {
1741 1741
1742 vfi->columns = new_cols; 1742 vfi->columns = new_cols;
1743 1743
1744 vficon_populate(vfi, TRUE, TRUE); 1744 vficon_populate(vfi, TRUE, TRUE);
1745 1745
1746 DEBUG_1("col tab pop cols=%d rows=%d\n", vfi->columns, vfi->rows); 1746 DEBUG_1("col tab pop cols=%d rows=%d", vfi->columns, vfi->rows);
1747 } 1747 }
1748 1748
1749 static void vficon_sync(ViewFileIcon *vfi) 1749 static void vficon_sync(ViewFileIcon *vfi)
1750 { 1750 {
1751 GtkTreeModel *store; 1751 GtkTreeModel *store;
2008 vfi); 2008 vfi);
2009 2009
2010 if (!thumb_loader_start(vfi->thumbs_loader, fd->path)) 2010 if (!thumb_loader_start(vfi->thumbs_loader, fd->path))
2011 { 2011 {
2012 /* set icon to unknown, continue */ 2012 /* set icon to unknown, continue */
2013 DEBUG_1("thumb loader start failed %s\n", vfi->thumbs_loader->path); 2013 DEBUG_1("thumb loader start failed %s", vfi->thumbs_loader->path);
2014 vficon_thumb_do(vfi, vfi->thumbs_loader, fd); 2014 vficon_thumb_do(vfi, vfi->thumbs_loader, fd);
2015 2015
2016 return TRUE; 2016 return TRUE;
2017 } 2017 }
2018 2018
2624 2624
2625 n = vficon_count(vfi, NULL); 2625 n = vficon_count(vfi, NULL);
2626 if (ignore_list) 2626 if (ignore_list)
2627 { 2627 {
2628 new_row = vficon_maint_find_closest(vfi, row, n, ignore_list); 2628 new_row = vficon_maint_find_closest(vfi, row, n, ignore_list);
2629 DEBUG_1("row = %d, closest is %d\n", row, new_row); 2629 DEBUG_1("row = %d, closest is %d", row, new_row);
2630 } 2630 }
2631 else 2631 else
2632 { 2632 {
2633 if (row + 1 < n) 2633 if (row + 1 < n)
2634 { 2634 {