graveman-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Graveman-cvs] Changes to graveman/current/src/themes.c


From: sylvain cresto
Subject: [Graveman-cvs] Changes to graveman/current/src/themes.c
Date: Fri, 29 Apr 2005 19:05:33 -0400

Index: graveman/current/src/themes.c
diff -u graveman/current/src/themes.c:1.6 graveman/current/src/themes.c:1.7
--- graveman/current/src/themes.c:1.6   Fri Apr 29 18:27:54 2005
+++ graveman/current/src/themes.c       Fri Apr 29 23:05:29 2005
@@ -178,8 +178,9 @@
     /* on recherche d'abord dans les repertoires themes specifiques */
     if (Atheme) {
       for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) {
-        g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.png", (gchar 
*)Lcur->data,
-            Atheme, Luneimage->code, Aplus ? Aplus : "");
+        g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.%s", (gchar 
*)Lcur->data,
+            Atheme, Luneimage->code, Aplus ? Aplus : "",
+            Luneimage->type == _IMG_PNG ? "png" : "mng");
 _DEB("on cherche dans [%s]\n", Lpath);
         if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) {
           Ltrouve = TRUE;
@@ -191,8 +192,9 @@
     /* puis dans les repertoires themes par defaut */
     if (Ltrouve == FALSE && ((!Atheme) || strcmp(Atheme, _THEME_DEFAULT))) {
       for (Lcur = Lthemesemp; Lcur && Lcur->data; Lcur = Lcur->next) {
-        g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.png",
-            (gchar *)Lcur->data, _THEME_DEFAULT, Aplus ? Aplus : "", 
Luneimage->code);
+        g_snprintf(Lpath, sizeof(Lpath)-1, "%s/themes/%s/%s%s.%s",
+            (gchar *)Lcur->data, _THEME_DEFAULT, Aplus ? Aplus : "", 
Luneimage->code,
+            Luneimage->type == _IMG_PNG ? "png" : "mng");
 
         if (g_file_test(Lpath, G_FILE_TEST_IS_REGULAR)) {
           Ltrouve = TRUE;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]