Added thumbnail to "erase this picture?" prompt.

Added "create_pot_file.sh" script for tuxpaint.pot regeneration.
Regenerated tuxpaint.pot.
This commit is contained in:
William Kendrick 2005-01-09 12:07:37 +00:00
parent 6cf5f65d70
commit 51862ce25c
4 changed files with 211 additions and 11 deletions

View file

@ -100,6 +100,12 @@ http://www.newbreedsoftware.com/tuxpaint/
* Other improvements: * Other improvements:
------------------- -------------------
* Thumbnail of selected image now shown on "Erase this image?"
confirmation pop-up.
* Improved 'rubber band line' and stamp outline colors ("XOR" code)
to make such lines easier to see on certain colors.
* Added beige and tan colors. Changed "Lime" to "Neon Green." * Added beige and tan colors. Changed "Lime" to "Neon Green."
Renamed "Fuschia" to "Magenta." Tweaked some color values. Renamed "Fuschia" to "Magenta." Tweaked some color values.
Moved grey/silver next to black/white. Moved grey/silver next to black/white.
@ -200,6 +206,9 @@ http://www.newbreedsoftware.com/tuxpaint/
* Spanish documentation. * Spanish documentation.
Gabriel Gazzán <ggabriel@internet.com.uy> Gabriel Gazzán <ggabriel@internet.com.uy>
* Added "create_pot_file.sh" help script to "src/po/", for easier
regeneration of "tuxpaint.pot" (gettext catalog template)
2004.September.28 (0.9.14) 2004.September.28 (0.9.14)
* New Features: * New Features:

31
src/po/create_pot_file.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
# script to create a correct *.pot file
#
# the problem is that the i18n() functions can be of
# one argument: i18n("translatable string")
# or of two arguments: i18n("context", "translatable string")
# this script rewrite the source files changing that second form
# into i18n("_: context\ntranslatable string") that xgettext can grok
# and produce the same kind of *.pot as expected by KDE
rm -f POTFILES.new
(for i in `grep -v "encoding" POTFILES.in | sed 's:^:../:'`
do
j="${i}_"
cat ${i} | \
sed 's|\(i18n[^(]*([^"]*"\)\([^"]*\)"[^")]*,[^")]*"|\1_: \2\\n|' > ${j}
echo ${j} | sed 's:^...::' >> POTFILES.new
done )
intltool-update --pot && mv -f tuxpaint.pot tuxpaint_tmp.pot
/usr/bin/xgettext --from-code=UTF-8 -o tuxpaint_tmp_C.pot --directory=.. \
--add-comments --keyword=I_ --keyword=i18n \
--keyword=I18N_NOOP \
--language=C \
--files-from=./POTFILES.new
msgcat --use-first tuxpaint_tmp.pot tuxpaint_tmp_C.pot > tuxpaint.pot
( cd .. ; rm -f `cat po/POTFILES.new` )
rm -f POTFILES.new tuxpaint_tmp*.pot

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-01-06 12:31+0100\n" "POT-Creation-Date: 2005-01-09 04:03-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -16,412 +16,545 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: tuxpaint.desktop.in.h:1
msgid "A drawing program for children." msgid "A drawing program for children."
msgstr "" msgstr ""
#: tuxpaint.desktop.in.h:2
msgid "Drawing program" msgid "Drawing program"
msgstr "" msgstr ""
#: tuxpaint.desktop.in.h:3
msgid "Tux Paint" msgid "Tux Paint"
msgstr "" msgstr ""
#: colors.h:66
msgid "Black!" msgid "Black!"
msgstr "" msgstr ""
#: colors.h:67
msgid "Dark Gray!" msgid "Dark Gray!"
msgstr "" msgstr ""
#. using both valid spellings #. using both valid spellings
#: colors.h:68
msgid "Light Grey!" msgid "Light Grey!"
msgstr "" msgstr ""
#. using both valid spellings #. using both valid spellings
#: colors.h:69
msgid "White!" msgid "White!"
msgstr "" msgstr ""
#: colors.h:70
msgid "Red!" msgid "Red!"
msgstr "" msgstr ""
#: colors.h:71
msgid "Orange!" msgid "Orange!"
msgstr "" msgstr ""
#: colors.h:72
msgid "Yellow!" msgid "Yellow!"
msgstr "" msgstr ""
#: colors.h:73
msgid "Neon green!" msgid "Neon green!"
msgstr "" msgstr ""
#: colors.h:74
msgid "Green!" msgid "Green!"
msgstr "" msgstr ""
#: colors.h:75
msgid "Sky blue!" msgid "Sky blue!"
msgstr "" msgstr ""
#: colors.h:76
msgid "Blue!" msgid "Blue!"
msgstr "" msgstr ""
#: colors.h:77
msgid "Purple!" msgid "Purple!"
msgstr "" msgstr ""
#: colors.h:78
msgid "Magenta!" msgid "Magenta!"
msgstr "" msgstr ""
#: colors.h:79
msgid "Pink!" msgid "Pink!"
msgstr "" msgstr ""
#: colors.h:80
msgid "Brown!" msgid "Brown!"
msgstr "" msgstr ""
#: colors.h:81
msgid "Tan!" msgid "Tan!"
msgstr "" msgstr ""
#: colors.h:82
msgid "Beige!" msgid "Beige!"
msgstr "" msgstr ""
#: great.h:20
msgid "Great!" msgid "Great!"
msgstr "" msgstr ""
#: great.h:21
msgid "Cool!" msgid "Cool!"
msgstr "" msgstr ""
#: great.h:22
msgid "Keep it up!" msgid "Keep it up!"
msgstr "" msgstr ""
#: great.h:23
msgid "Good job!" msgid "Good job!"
msgstr "" msgstr ""
#: magic.h:83
msgid "Fill" msgid "Fill"
msgstr "" msgstr ""
#: magic.h:84
msgid "Grass" msgid "Grass"
msgstr "" msgstr ""
#: magic.h:86 magic.h:87
msgid "Bricks" msgid "Bricks"
msgstr "" msgstr ""
#: magic.h:89
msgid "Rainbow" msgid "Rainbow"
msgstr "" msgstr ""
#: magic.h:90
msgid "Sparkles" msgid "Sparkles"
msgstr "" msgstr ""
#: magic.h:92
msgid "Blur" msgid "Blur"
msgstr "" msgstr ""
#: magic.h:93
msgid "Smudge" msgid "Smudge"
msgstr "" msgstr ""
#: magic.h:95
msgid "Fade" msgid "Fade"
msgstr "" msgstr ""
#: magic.h:96
msgid "Darken" msgid "Darken"
msgstr "" msgstr ""
#: magic.h:98
msgid "Chalk" msgid "Chalk"
msgstr "" msgstr ""
#: magic.h:99
msgid "Blocks" msgid "Blocks"
msgstr "" msgstr ""
#: magic.h:101
msgid "Negative" msgid "Negative"
msgstr "" msgstr ""
#: magic.h:102
msgid "Tint" msgid "Tint"
msgstr "" msgstr ""
#: magic.h:104
msgid "Drip" msgid "Drip"
msgstr "" msgstr ""
#: magic.h:105
msgid "Cartoon" msgid "Cartoon"
msgstr "" msgstr ""
#: magic.h:107
msgid "Mirror" msgid "Mirror"
msgstr "" msgstr ""
#: magic.h:108
msgid "Flip" msgid "Flip"
msgstr "" msgstr ""
#: magic.h:115
msgid "Click in the picture to fill that area with color." msgid "Click in the picture to fill that area with color."
msgstr "" msgstr ""
#: magic.h:116
msgid "Click and move to draw grass. Don't forget the dirt!" msgid "Click and move to draw grass. Don't forget the dirt!"
msgstr "" msgstr ""
#: magic.h:118
msgid "Click and move to draw large bricks." msgid "Click and move to draw large bricks."
msgstr "" msgstr ""
#: magic.h:119
msgid "Click and move to draw small bricks." msgid "Click and move to draw small bricks."
msgstr "" msgstr ""
#: magic.h:121
msgid "You can draw in rainbow colors!" msgid "You can draw in rainbow colors!"
msgstr "" msgstr ""
#: magic.h:122
msgid "Click and move to draw sparkles." msgid "Click and move to draw sparkles."
msgstr "" msgstr ""
#: magic.h:124
msgid "Click and move the mouse around to blur the picture." msgid "Click and move the mouse around to blur the picture."
msgstr "" msgstr ""
#: magic.h:125
msgid "Click and move the mouse around to smudge the picture." msgid "Click and move the mouse around to smudge the picture."
msgstr "" msgstr ""
#: magic.h:127
msgid "Click and move to fade the colors." msgid "Click and move to fade the colors."
msgstr "" msgstr ""
#: magic.h:128
msgid "Click and move to darken the colors." msgid "Click and move to darken the colors."
msgstr "" msgstr ""
#: magic.h:130
msgid "" msgid ""
"Click and move the mouse around to turn the picture into a chalk drawing." "Click and move the mouse around to turn the picture into a chalk drawing."
msgstr "" msgstr ""
#: magic.h:131
msgid "Click and move the mouse around to make the picture blocky." msgid "Click and move the mouse around to make the picture blocky."
msgstr "" msgstr ""
#: magic.h:133
msgid "Click and move the mouse around to draw a negative." msgid "Click and move the mouse around to draw a negative."
msgstr "" msgstr ""
#: magic.h:134
msgid "Click and move the mouse around to change the picture's color." msgid "Click and move the mouse around to change the picture's color."
msgstr "" msgstr ""
#: magic.h:136
msgid "Click and move the mouse around to make the picture drip." msgid "Click and move the mouse around to make the picture drip."
msgstr "" msgstr ""
#: magic.h:137
msgid "Click and move the mouse around to turn the picture into a cartoon." msgid "Click and move the mouse around to turn the picture into a cartoon."
msgstr "" msgstr ""
#: magic.h:139
msgid "Click to make a mirror image." msgid "Click to make a mirror image."
msgstr "" msgstr ""
#: magic.h:140
msgid "Click to flip the picture upside-down." msgid "Click to flip the picture upside-down."
msgstr "" msgstr ""
#: shapes.h:141 shapes.h:142
msgid "Square" msgid "Square"
msgstr "" msgstr ""
#: shapes.h:143 shapes.h:144
msgid "Rectangle" msgid "Rectangle"
msgstr "" msgstr ""
#: shapes.h:145 shapes.h:146
msgid "Circle" msgid "Circle"
msgstr "" msgstr ""
#: shapes.h:147 shapes.h:148 shapes.h:167 shapes.h:168
msgid "Oval" msgid "Oval"
msgstr "" msgstr ""
#: shapes.h:149 shapes.h:150
msgid "Triangle" msgid "Triangle"
msgstr "" msgstr ""
#: shapes.h:151 shapes.h:152
msgid "Pentagon" msgid "Pentagon"
msgstr "" msgstr ""
msgid "Diamond" #: shapes.h:153 shapes.h:154
msgid "Rhombus"
msgstr "" msgstr ""
msgid "A square has four sides, each the same length." #: shapes.h:161 shapes.h:162
msgid "A square has four equal sides and L-shaped corners."
msgstr "" msgstr ""
msgid "A rectangle has four sides." #: shapes.h:163 shapes.h:164
msgid "A rectangle has four sides and L-shaped corners."
msgstr "" msgstr ""
#: shapes.h:165 shapes.h:166
msgid "A circle is exactly round." msgid "A circle is exactly round."
msgstr "" msgstr ""
#: shapes.h:169 shapes.h:170
msgid "A triangle has three sides." msgid "A triangle has three sides."
msgstr "" msgstr ""
#: shapes.h:171 shapes.h:172
msgid "A pentagon has five sides." msgid "A pentagon has five sides."
msgstr "" msgstr ""
msgid "A diamond is a square, turned around slightly." #: shapes.h:173 shapes.h:174
msgid "A rhombus has four equal sides."
msgstr "" msgstr ""
#: titles.h:38
msgid "Tools" msgid "Tools"
msgstr "" msgstr ""
#: titles.h:39
msgid "Colors" msgid "Colors"
msgstr "" msgstr ""
#: titles.h:40
msgid "Brushes" msgid "Brushes"
msgstr "" msgstr ""
#: titles.h:41
msgid "Erasers" msgid "Erasers"
msgstr "" msgstr ""
#: titles.h:42
msgid "Stamps" msgid "Stamps"
msgstr "" msgstr ""
#: titles.h:43 tools.h:45
msgid "Shapes" msgid "Shapes"
msgstr "" msgstr ""
#: titles.h:44
msgid "Letters" msgid "Letters"
msgstr "" msgstr ""
#: titles.h:45 tools.h:47
msgid "Magic" msgid "Magic"
msgstr "" msgstr ""
#: tools.h:42
msgid "Paint" msgid "Paint"
msgstr "" msgstr ""
#: tools.h:43
msgid "Stamp" msgid "Stamp"
msgstr "" msgstr ""
#: tools.h:44
msgid "Lines" msgid "Lines"
msgstr "" msgstr ""
#: tools.h:46
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: tools.h:48
msgid "Undo" msgid "Undo"
msgstr "" msgstr ""
#: tools.h:49
msgid "Redo" msgid "Redo"
msgstr "" msgstr ""
#: tools.h:50
msgid "Eraser" msgid "Eraser"
msgstr "" msgstr ""
#: tools.h:51
msgid "New" msgid "New"
msgstr "" msgstr ""
#. buttons for the file open dialog #. buttons for the file open dialog
#: tools.h:52 tuxpaint.c:7514
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: tools.h:53
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: tools.h:54
msgid "Print" msgid "Print"
msgstr "" msgstr ""
#: tools.h:55
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
#: tools.h:62
msgid "Pick a color and a brush shape to draw with." msgid "Pick a color and a brush shape to draw with."
msgstr "" msgstr ""
#: tools.h:63
msgid "Pick a picture to stamp around your drawing." msgid "Pick a picture to stamp around your drawing."
msgstr "" msgstr ""
#: tools.h:64
msgid "Click to start drawing a line. Let go to complete it." msgid "Click to start drawing a line. Let go to complete it."
msgstr "" msgstr ""
#: tools.h:65
msgid "" msgid ""
"Pick a shape. Click to pick the center, drag, then let go when it is the " "Pick a shape. Click to pick the center, drag, then let go when it is the "
"size you want. Move around to rotate it, and click to draw it." "size you want. Move around to rotate it, and click to draw it."
msgstr "" msgstr ""
#: tools.h:66
msgid "Choose a style of text. Click on your drawing and you can start typing." msgid "Choose a style of text. Click on your drawing and you can start typing."
msgstr "" msgstr ""
#: tools.h:67
msgid "Pick a magical effect to use on your drawing!" msgid "Pick a magical effect to use on your drawing!"
msgstr "" msgstr ""
#. Undo #. Undo
#: tools.h:68
msgid "Undo!" msgid "Undo!"
msgstr "" msgstr ""
#. Redo #. Redo
#: tools.h:69
msgid "Redo!" msgid "Redo!"
msgstr "" msgstr ""
#. Eraser #. Eraser
#: tools.h:70
msgid "Eraser!" msgid "Eraser!"
msgstr "" msgstr ""
#. New #. New
#: tools.h:71
msgid "You now have a blank sheet to draw on!" msgid "You now have a blank sheet to draw on!"
msgstr "" msgstr ""
#. Open #. Open
#: tools.h:72
msgid "Open…" msgid "Open…"
msgstr "" msgstr ""
#. Save #. Save
#: tools.h:73
msgid "Your image has been saved!" msgid "Your image has been saved!"
msgstr "" msgstr ""
#. Print #. Print
#: tools.h:74
msgid "Printing…" msgid "Printing…"
msgstr "" msgstr ""
#. Quit #. Quit
#: tools.h:75
msgid "Bye bye!" msgid "Bye bye!"
msgstr "" msgstr ""
#: tools.h:78
msgid "Let go of the button to complete the line." msgid "Let go of the button to complete the line."
msgstr "" msgstr ""
#: tools.h:79
msgid "Hold the button to stretch the shape." msgid "Hold the button to stretch the shape."
msgstr "" msgstr ""
#: tools.h:80
msgid "Move the mouse to rotate the shape. Click to draw it." msgid "Move the mouse to rotate the shape. Click to draw it."
msgstr "" msgstr ""
#: tools.h:81
msgid "OK then… Lets keep drawing this one!" msgid "OK then… Lets keep drawing this one!"
msgstr "" msgstr ""
#. FIXME: Move elsewhere!!! #. FIXME: Move elsewhere!!!
#: tuxpaint.c:2337
msgid "Do you really want to quit?" msgid "Do you really want to quit?"
msgstr "" msgstr ""
#. FIXME: Move elsewhere! Or not?! #. FIXME: Move elsewhere! Or not?!
#: tuxpaint.c:2338 tuxpaint.c:2342 tuxpaint.c:2346 tuxpaint.c:2360
#: tuxpaint.c:2370 tuxpaint.c:10901 tuxpaint.c:11689
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: tuxpaint.c:2339 tuxpaint.c:2343 tuxpaint.c:2347 tuxpaint.c:2361
#: tuxpaint.c:2371 tuxpaint.c:10905
msgid "No" msgid "No"
msgstr "" msgstr ""
#: tuxpaint.c:2341
msgid "If you quit, youll lose your picture! Save it?" msgid "If you quit, youll lose your picture! Save it?"
msgstr "" msgstr ""
#: tuxpaint.c:2345
msgid "Save your picture first?" msgid "Save your picture first?"
msgstr "" msgstr ""
#: tuxpaint.c:2349
msgid "Cant open that picture!" msgid "Cant open that picture!"
msgstr "" msgstr ""
#: tuxpaint.c:2350 tuxpaint.c:2357 tuxpaint.c:2364 tuxpaint.c:2367
msgid "OK" msgid "OK"
msgstr "" msgstr ""
#: tuxpaint.c:2352
msgid "Starting a new picture will erase the current one!" msgid "Starting a new picture will erase the current one!"
msgstr "" msgstr ""
#: tuxpaint.c:2353
msgid "Thats OK!" msgid "Thats OK!"
msgstr "" msgstr ""
#: tuxpaint.c:2354
msgid "Never mind!" msgid "Never mind!"
msgstr "" msgstr ""
#: tuxpaint.c:2356
msgid "There are no saved files!" msgid "There are no saved files!"
msgstr "" msgstr ""
#: tuxpaint.c:2359
msgid "Print your picture now?" msgid "Print your picture now?"
msgstr "" msgstr ""
#: tuxpaint.c:2363
msgid "Your picture has been printed!" msgid "Your picture has been printed!"
msgstr "" msgstr ""
#: tuxpaint.c:2366
msgid "You cant print yet!" msgid "You cant print yet!"
msgstr "" msgstr ""
#: tuxpaint.c:2369
msgid "Erase this picture?" msgid "Erase this picture?"
msgstr "" msgstr ""
#: tuxpaint.c:7515
msgid "Erase" msgid "Erase"
msgstr "" msgstr ""
#: tuxpaint.c:7516
msgid "Back" msgid "Back"
msgstr "" msgstr ""
#: tuxpaint.c:8112
msgid "Aa" msgid "Aa"
msgstr "" msgstr ""
#. FIXME: Move elsewhere!!! #. FIXME: Move elsewhere!!!
#: tuxpaint.c:11688
msgid "Save over the older version of this picture?" msgid "Save over the older version of this picture?"
msgstr "" msgstr ""
#: tuxpaint.c:11690
msgid "No, save a new file" msgid "No, save a new file"
msgstr "" msgstr ""
#: tuxpaint.c:12524
msgid "Choose the picture you want, then click “Open”." msgid "Choose the picture you want, then click “Open”."
msgstr "" msgstr ""

View file

@ -22,12 +22,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt) (See COPYING.txt)
June 14, 2002 - January 8, 2005 June 14, 2002 - January 9, 2005
*/ */
#define VER_VERSION "0.9.15" #define VER_VERSION "0.9.15"
#define VER_DATE "2005-01-08" #define VER_DATE "2005-01-09"
//#define VIDEO_BPP 15 // saves memory //#define VIDEO_BPP 15 // saves memory
@ -2143,6 +2143,7 @@ static void do_wait(void);
static void load_current(void); static void load_current(void);
static void save_current(void); static void save_current(void);
static char * get_fname(const char * const name); static char * get_fname(const char * const name);
static int do_prompt_image(const char * const text, const char * const btn_yes, const char * const btn_no, SDL_Surface * img);
static int do_prompt(const char * const text, const char * const btn_yes, const char * const btn_no); static int do_prompt(const char * const text, const char * const btn_yes, const char * const btn_no);
static void cleanup(void); static void cleanup(void);
static void free_cursor(SDL_Cursor ** cursor); static void free_cursor(SDL_Cursor ** cursor);
@ -10875,6 +10876,12 @@ static char * get_fname(const char * const name)
/* Prompt the user with a yes/no question: */ /* Prompt the user with a yes/no question: */
static int do_prompt(const char * const text, const char * const btn_yes, const char * const btn_no) static int do_prompt(const char * const text, const char * const btn_yes, const char * const btn_no)
{
return(do_prompt_image(text, btn_yes, btn_no, NULL));
}
static int do_prompt_image(const char * const text, const char * const btn_yes, const char * const btn_no, SDL_Surface * img)
{ {
SDL_Event event; SDL_Event event;
SDL_Rect dest; SDL_Rect dest;
@ -10971,11 +10978,29 @@ static int do_prompt(const char * const text, const char * const btn_yes, const
/* Draw the question: */ /* Draw the question: */
int img_w;
if (img != NULL)
img_w = img->w + 8;
else
img_w = 0;
wordwrap_text(text, black, wordwrap_text(text, black,
166 + PROMPTOFFSETX, 100 + PROMPTOFFSETY, 475 + PROMPTOFFSETX, 166 + PROMPTOFFSETX, 100 + PROMPTOFFSETY,
475 + PROMPTOFFSETX - img->w,
1); 1);
/* Draw the image (if any): */
if (img != NULL)
{
dest.x = 457 + PROMPTOFFSETX - img->w - 4;
dest.y = 100 + PROMPTOFFSETY + 4;
SDL_BlitSurface(img, NULL, screen, &dest);
}
/* Draw yes button: */ /* Draw yes button: */
dest.x = 166 + PROMPTOFFSETX; dest.x = 166 + PROMPTOFFSETX;
@ -12906,8 +12931,9 @@ static int do_open(int want_new_tool)
{ {
want_erase = 0; want_erase = 0;
if (do_prompt(PROMPT_ERASE_TXT, if (do_prompt_image(PROMPT_ERASE_TXT,
PROMPT_ERASE_YES, PROMPT_ERASE_NO)) PROMPT_ERASE_YES, PROMPT_ERASE_NO,
thumbs[which]))
{ {
snprintf(fname, sizeof(fname), "saved/%s%s", snprintf(fname, sizeof(fname), "saved/%s%s",
d_names[which], d_exts[which]); d_names[which], d_exts[which]);
@ -12917,7 +12943,6 @@ static int do_open(int want_new_tool)
if (unlink(rfname) == 0) if (unlink(rfname) == 0)
{ {
thumbs[which] = NULL;
update_list = 1; update_list = 1;
@ -12966,6 +12991,8 @@ static int do_open(int want_new_tool)
free(d_exts[which]); free(d_exts[which]);
free_surface(&thumbs[which]); free_surface(&thumbs[which]);
thumbs[which] = NULL;
for (i = which; i < num_files - 1; i++) for (i = which; i < num_files - 1; i++)
{ {
d_names[i] = d_names[i + 1]; d_names[i] = d_names[i + 1];