summaryrefslogtreecommitdiff
path: root/src/bin/e_bg.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-10-22 11:49:33 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-10-22 11:49:33 +0000
commit1087de2397de995fd84b4c4dc87ea91389945cf2 (patch)
treeb545a9b02799d930773f2d6e485479912fe76eaa /src/bin/e_bg.c
parentb170c9ffe00cb94de1760b3bb9eb207c9c674540 (diff)
Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already big enough. SVN revision: 36962
Diffstat (limited to 'src/bin/e_bg.c')
-rw-r--r--src/bin/e_bg.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bin/e_bg.c b/src/bin/e_bg.c
index b9c0edc..61daf6b 100644
--- a/src/bin/e_bg.c
+++ b/src/bin/e_bg.c
@@ -15,7 +15,7 @@ static E_Fm2_Mime_Handler *bg_hdl = NULL;
15EAPI int 15EAPI int
16e_bg_init(void) 16e_bg_init(void)
17{ 17{
18 Evas_List *l = NULL; 18 Eina_List *l = NULL;
19 19
20 /* Register mime handler */ 20 /* Register mime handler */
21 bg_hdl = e_fm2_mime_handler_new(_("Set As Background"), 21 bg_hdl = e_fm2_mime_handler_new(_("Set As Background"),
@@ -44,7 +44,7 @@ e_bg_init(void)
44EAPI int 44EAPI int
45e_bg_shutdown(void) 45e_bg_shutdown(void)
46{ 46{
47 Evas_List *l = NULL; 47 Eina_List *l = NULL;
48 48
49 /* Deregister mime handler */ 49 /* Deregister mime handler */
50 if (bg_hdl) 50 if (bg_hdl)
@@ -77,7 +77,7 @@ e_bg_shutdown(void)
77EAPI const E_Config_Desktop_Background * 77EAPI const E_Config_Desktop_Background *
78e_bg_config_get(int container_num, int zone_num, int desk_x, int desk_y) 78e_bg_config_get(int container_num, int zone_num, int desk_x, int desk_y)
79{ 79{
80 Evas_List *l, *ll, *entries; 80 Eina_List *l, *ll, *entries;
81 E_Config_Desktop_Background *bg = NULL; 81 E_Config_Desktop_Background *bg = NULL;
82 int current_spec = 0; /* how specific the setting is - we want the least general one that applies */ 82 int current_spec = 0; /* how specific the setting is - we want the least general one that applies */
83 83
@@ -125,7 +125,7 @@ EAPI const char *
125e_bg_file_get(int container_num, int zone_num, int desk_x, int desk_y) 125e_bg_file_get(int container_num, int zone_num, int desk_x, int desk_y)
126{ 126{
127 const E_Config_Desktop_Background *cfbg; 127 const E_Config_Desktop_Background *cfbg;
128 Evas_List *l, *entries; 128 Eina_List *l, *entries;
129 const char *bgfile = ""; 129 const char *bgfile = "";
130 int ok = 0; 130 int ok = 0;
131 131
@@ -287,7 +287,7 @@ e_bg_add(int container, int zone, int desk_x, int desk_y, char *file)
287 cfbg->desk_x = desk_x; 287 cfbg->desk_x = desk_x;
288 cfbg->desk_y = desk_y; 288 cfbg->desk_y = desk_y;
289 cfbg->file = eina_stringshare_add(file); 289 cfbg->file = eina_stringshare_add(file);
290 e_config->desktop_backgrounds = evas_list_append(e_config->desktop_backgrounds, cfbg); 290 e_config->desktop_backgrounds = eina_list_append(e_config->desktop_backgrounds, cfbg);
291 291
292 e_filereg_register(cfbg->file); 292 e_filereg_register(cfbg->file);
293 293
@@ -302,7 +302,7 @@ e_bg_add(int container, int zone, int desk_x, int desk_y, char *file)
302EAPI void 302EAPI void
303e_bg_del(int container, int zone, int desk_x, int desk_y) 303e_bg_del(int container, int zone, int desk_x, int desk_y)
304{ 304{
305 Evas_List *l = NULL; 305 Eina_List *l = NULL;
306 E_Event_Bg_Update *ev; 306 E_Event_Bg_Update *ev;
307 307
308 for (l = e_config->desktop_backgrounds; l; l = l->next) 308 for (l = e_config->desktop_backgrounds; l; l = l->next)
@@ -314,7 +314,7 @@ e_bg_del(int container, int zone, int desk_x, int desk_y)
314 if ((cfbg->container == container) && (cfbg->zone == zone) && 314 if ((cfbg->container == container) && (cfbg->zone == zone) &&
315 (cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y)) 315 (cfbg->desk_x == desk_x) && (cfbg->desk_y == desk_y))
316 { 316 {
317 e_config->desktop_backgrounds = evas_list_remove_list(e_config->desktop_backgrounds, l); 317 e_config->desktop_backgrounds = eina_list_remove_list(e_config->desktop_backgrounds, l);
318 e_filereg_deregister(cfbg->file); 318 e_filereg_deregister(cfbg->file);
319 if (cfbg->file) eina_stringshare_del(cfbg->file); 319 if (cfbg->file) eina_stringshare_del(cfbg->file);
320 free(cfbg); 320 free(cfbg);
@@ -333,7 +333,7 @@ e_bg_del(int container, int zone, int desk_x, int desk_y)
333EAPI void 333EAPI void
334e_bg_update(void) 334e_bg_update(void)
335{ 335{
336 Evas_List *l, *ll, *lll; 336 Eina_List *l, *ll, *lll;
337 E_Manager *man; 337 E_Manager *man;
338 E_Container *con; 338 E_Container *con;
339 E_Zone *zone; 339 E_Zone *zone;