| 178 |
/* on recherche d'abord dans les repertoires themes specifiques */ |
/* on recherche d'abord dans les repertoires themes specifiques */ |
| 179 |
if (Atheme) { |
if (Atheme) { |
| 180 |
for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) { |
for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) { |
| 181 |
g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.png", (gchar *)Lcur->data, |
g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.%s", (gchar *)Lcur->data, |
| 182 |
Atheme, Luneimage->code, Aplus ? Aplus : ""); |
Atheme, Luneimage->code, Aplus ? Aplus : "", |
| 183 |
|
Luneimage->type == _IMG_PNG ? "png" : "mng"); |
| 184 |
_DEB("on cherche dans [%s]\n", Lpath); |
_DEB("on cherche dans [%s]\n", Lpath); |
| 185 |
if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) { |
if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) { |
| 186 |
Ltrouve = TRUE; |
Ltrouve = TRUE; |
| 192 |
/* puis dans les repertoires themes par defaut */ |
/* puis dans les repertoires themes par defaut */ |
| 193 |
if (Ltrouve == FALSE && ((!Atheme) || strcmp(Atheme, _THEME_DEFAULT))) { |
if (Ltrouve == FALSE && ((!Atheme) || strcmp(Atheme, _THEME_DEFAULT))) { |
| 194 |
for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) { |
for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) { |
| 195 |
g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.png", |
g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.%s", |
| 196 |
(gchar *)Lcur->data, _THEME_DEFAULT, Aplus ? Aplus : "", Luneimage->code); |
(gchar *)Lcur->data, _THEME_DEFAULT, Aplus ? Aplus : "", Luneimage->code, |
| 197 |
|
Luneimage->type == _IMG_PNG ? "png" : "mng"); |
| 198 |
|
|
| 199 |
if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) { |
if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) { |
| 200 |
Ltrouve = TRUE; |
Ltrouve = TRUE; |