"New" dialog: fix bad dir: Starter/Template thumbs
Made sure "New" dialog created correct thumbnail subdirectories for personal Starters & Templates (e.g., ~/.tuxpaint/starters/thumbs/)
This commit is contained in:
parent
82910adafb
commit
4c3ad460ee
2 changed files with 8 additions and 4 deletions
|
|
@ -37,6 +37,9 @@ $Id$
|
||||||
or configure Tux Paint to always bring up the dialog upon print.
|
or configure Tux Paint to always bring up the dialog upon print.
|
||||||
Mark K. Kim <mkkim214@gmail.com>
|
Mark K. Kim <mkkim214@gmail.com>
|
||||||
|
|
||||||
|
* Made sure "New" dialog created correct thumbnail subdirectories
|
||||||
|
for personal Starters & Templates (e.g., ~/.tuxpaint/starters/thumbs/)
|
||||||
|
|
||||||
* Other Improvements
|
* Other Improvements
|
||||||
------------------
|
------------------
|
||||||
* Added ability to move color palette options to the end of
|
* Added ability to move color palette options to the end of
|
||||||
|
|
|
||||||
|
|
@ -18901,11 +18901,12 @@ static int do_new_dialog(void)
|
||||||
{
|
{
|
||||||
/* No thumbnail - load original: */
|
/* No thumbnail - load original: */
|
||||||
|
|
||||||
/* Make sure we have a ~/.tuxpaint/saved directory: */
|
/* Make sure we have a ~/.tuxpaint/[starters|templates] directory: */
|
||||||
if (make_directory("saved", "Can't create user data directory"))
|
if (make_directory(dirname[d_places[num_files]], "Can't create user data directory"))
|
||||||
{
|
{
|
||||||
/* (Make sure we have a .../saved/.thumbs/ directory:) */
|
/* (Make sure we have a .../[starters|templates]/.thumbs/ directory:) */
|
||||||
make_directory("saved/.thumbs", "Can't create user data thumbnail directory");
|
snprintf(fname, sizeof(fname), "%s/.thumbs", dirname[d_places[num_files]]);
|
||||||
|
make_directory(fname, "Can't create user data thumbnail directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
img = NULL;
|
img = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue