Commit 87ad430d authored by Bruno Coudoin's avatar Bruno Coudoin

Fixed skin references

svn path=/branches/gcomprixogoo/; revision=3340
parent 744e839a
......@@ -110,3 +110,5 @@ SUBDIRS = goocanvas gcompris boards \
sudoku-activity \
tuxpaint-activity \
watercycle-activity
EXTRA_DIST = runit.sh
......@@ -374,7 +374,7 @@ gc_config_start ()
if (one_dirent[0] != '.') {
gchar *filename;
/* Only directory here are skins */
filename = g_strdup_printf("%s/skins/%s", properties->package_data_dir, one_dirent);
filename = g_strdup_printf("%s/%s", properties->package_skin_dir, one_dirent);
if (g_file_test ((filename), G_FILE_TEST_IS_DIR)) {
gchar *skin_name = g_strdup_printf("%s", one_dirent);
......
......@@ -70,7 +70,7 @@ gc_skin_image_get(gchar *pixmapfile)
if (g_file_test ((filename), G_FILE_TEST_EXISTS)) {
g_free(filename);
filename = g_strdup_printf("skins/%s/%s", properties->skin, pixmapfile);
filename = g_strdup_printf("%s/%s", properties->skin, pixmapfile);
return(filename);
}
......@@ -82,7 +82,7 @@ gc_skin_image_get(gchar *pixmapfile)
return(filename);
/* Return the default skin dir */
filename = g_strdup_printf("skins/%s/%s", DEFAULT_SKIN, pixmapfile);
filename = g_strdup_printf("%s/%s", DEFAULT_SKIN, pixmapfile);
return(filename);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment