/[graveman]/graveman/current/src/themes.c
ViewVC logotype

Diff of /graveman/current/src/themes.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by scresto, Fri Apr 29 18:27:54 2005 UTC revision 1.7 by scresto, Fri Apr 29 23:05:29 2005 UTC
# Line 178  GHashTable *get_imagespath_plus_from_the Line 178  GHashTable *get_imagespath_plus_from_the
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;
# Line 191  _DEB("on cherche dans [%s]\n", Lpath); Line 192  _DEB("on cherche dans [%s]\n", Lpath);
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;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26