Enlightenment CVS committal Author : devilhorns Project : e_modules Module : slideshow
Dir : e_modules/slideshow Modified Files: e_mod_main.c Log Message: Patch from zgold for more xinerama fixes. =================================================================== RCS file: /cvs/e/e_modules/slideshow/e_mod_main.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- e_mod_main.c 15 Dec 2006 03:02:40 -0000 1.40 +++ e_mod_main.c 18 Dec 2006 06:16:56 -0000 1.41 @@ -534,12 +534,15 @@ Instance *inst; Config_Item *ci; E_Container *con; + E_Gadcon *g; E_Desk *d; E_Zone *z; int i; char buf[4096]; inst = data; + g = inst->gcc->gadcon; + if(!g){return;} ci = _slide_config_item_get(inst->gcc->id); snprintf (buf, sizeof (buf), "%s/%s", ci->dir, bg); @@ -564,12 +567,11 @@ } else if (ci->all_desks == 2) { - con = e_container_current_get(e_manager_current_get()); - z = e_zone_current_get(con); - for (i = 0; i < (z->desk_x_count * z->desk_y_count); i++) + z = e_gadcon_zone_get(g); + for (i = 0; i < z->desk_x_count*z->desk_y_count; i++) { - e_bg_del(con->num, z->num, z->desks[i]->x, z->desks[i]->y); - e_bg_add(con->num, z->num, z->desks[i]->x, z->desks[i]->y, buf); + e_bg_del(z->container->num, z->num, z->desks[i]->x, z->desks[i]->y); + e_bg_add(z->container->num, z->num, z->desks[i]->x, z->desks[i]->y, buf); } } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs