diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-12 00:56:26 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-12 00:56:26 +0400 |
commit | e32a73f69ec42df290ea0d6fa71c2cd675044dd8 (patch) | |
tree | b37a9daba5b0f375d0e6a6efd474fd8a4eef4418 /source/blender/src/header_filesel.c | |
parent | 95ce9b93bee846034e58710ab05c9adc685cf5b8 (diff) |
Fixing header*** files to use tabs instead of spaces (was my fault, sorry).
Diffstat (limited to 'source/blender/src/header_filesel.c')
-rw-r--r-- | source/blender/src/header_filesel.c | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c index 542c00c4105..13598d46a8b 100644 --- a/source/blender/src/header_filesel.c +++ b/source/blender/src/header_filesel.c @@ -23,7 +23,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * All rights reserved. @@ -75,22 +75,22 @@ void do_file_buttons(short event) { - SpaceFile *sfile; - - if(curarea->win==0) return; - sfile= curarea->spacedata.first; - - switch(event) { - case B_SORTFILELIST: - sort_filelist(sfile); - scrarea_queue_winredraw(curarea); - break; - case B_RELOADDIR: - freefilelist(sfile); - scrarea_queue_winredraw(curarea); - break; - } - + SpaceFile *sfile; + + if(curarea->win==0) return; + sfile= curarea->spacedata.first; + + switch(event) { + case B_SORTFILELIST: + sort_filelist(sfile); + scrarea_queue_winredraw(curarea); + break; + case B_RELOADDIR: + freefilelist(sfile); + scrarea_queue_winredraw(curarea); + break; + } + } void file_buttons(void) @@ -123,7 +123,7 @@ void file_buttons(void) uiDefIconButS(block, ROW, B_SORTFILELIST, ICON_SORTSIZE, xco+=XIC,0,XIC,YIC, &sfile->sort, 1.0, 2.0, 0, 0, "Sorts files by size"); cpack(0x0); - glRasterPos2i(xco+=XIC+10, 5); + glRasterPos2i(xco+=XIC+10, 5); BIF_DrawString(uiBlockGetCurFont(block), sfile->title, (U.transopts & TR_BUTTONS), 0); xco+= BIF_GetStringWidth(G.font, sfile->title, (U.transopts & TR_BUTTONS)); @@ -143,16 +143,15 @@ void file_buttons(void) filesel_statistics(sfile, &totfile, &selfile, &totlen, &sellen); - sprintf(naam, "Free: %.3f Mb Files: (%d) %d (%.3f) %.3f Mb", - df, selfile,totfile, sellen, totlen); - + sprintf(naam, "Free: %.3f Mb Files: (%d) %d (%.3f) %.3f Mb", df, selfile,totfile, sellen, totlen); + cpack(0x0); - glRasterPos2i(xco, 5); + glRasterPos2i(xco, 5); BIF_DrawString(uiBlockGetCurFont(block), naam, 0, 0); } /* always do as last */ curarea->headbutlen= xco+2*XIC; - + uiDrawBlock(block); } |