summaryrefslogtreecommitdiff
path: root/src/bin/e_bg.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-08-11 11:07:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-08-11 11:07:12 +0000
commitcc3c3bf07ce614b2421ced372628551069b35236 (patch)
tree49edf0b2dde484797e75175513641f9f38d5b829 /src/bin/e_bg.c
parent28d60493194c5f7aa9df6b57a8277d619b471d44 (diff)
use eina str has extension.
SVN revision: 62343
Diffstat (limited to 'src/bin/e_bg.c')
-rw-r--r--src/bin/e_bg.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bin/e_bg.c b/src/bin/e_bg.c
index 197560d..3d6505b 100644
--- a/src/bin/e_bg.c
+++ b/src/bin/e_bg.c
@@ -118,7 +118,6 @@ e_bg_config_get(int container_num, int zone_num, int desk_x, int desk_y)
118 EINA_LIST_FOREACH(e_config->desktop_backgrounds, l, cfbg) 118 EINA_LIST_FOREACH(e_config->desktop_backgrounds, l, cfbg)
119 { 119 {
120 int spec; 120 int spec;
121 const char *ext;
122 121
123 if (!cfbg) continue; 122 if (!cfbg) continue;
124 spec = 0; 123 spec = 0;
@@ -143,8 +142,7 @@ e_bg_config_get(int container_num, int zone_num, int desk_x, int desk_y)
143 if (bf) bgfile = bf; 142 if (bf) bgfile = bf;
144 } 143 }
145 } 144 }
146 ext = strrchr(bgfile, '.'); 145 if (eina_str_has_extension(bgfile, ".edj"))
147 if ((ext) && (!strcasecmp(ext, ".edj")))
148 { 146 {
149 entries = edje_file_collection_list(bgfile); 147 entries = edje_file_collection_list(bgfile);
150 if (entries) 148 if (entries)
@@ -198,8 +196,6 @@ e_bg_file_get(int container_num, int zone_num, int desk_x, int desk_y)
198 } 196 }
199 else 197 else
200 { 198 {
201 const char *ext;
202
203 bgfile = e_config->desktop_default_background; 199 bgfile = e_config->desktop_default_background;
204 if (bgfile) 200 if (bgfile)
205 { 201 {
@@ -211,8 +207,7 @@ e_bg_file_get(int container_num, int zone_num, int desk_x, int desk_y)
211 if (bf) bgfile = bf; 207 if (bf) bgfile = bf;
212 } 208 }
213 } 209 }
214 ext = strrchr(bgfile, '.'); 210 if (eina_str_has_extension(bgfile, ".edj"))
215 if ((ext) && (!strcasecmp(ext, ".edj")))
216 { 211 {
217 entries = edje_file_collection_list(bgfile); 212 entries = edje_file_collection_list(bgfile);
218 if (entries) 213 if (entries)