Enlightenment CVS committal Author : devilhorns Project : e_modules Module : slideshow
Dir : e_modules/slideshow Modified Files: e_mod_main.c e_mod_config.c Log Message: Patch from Zachary Goldberg (zgold) for xinerama support. =================================================================== RCS file: /cvs/e/e_modules/slideshow/e_mod_main.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- e_mod_main.c 10 Dec 2006 01:00:07 -0000 1.39 +++ e_mod_main.c 15 Dec 2006 03:02:40 -0000 1.40 @@ -536,6 +536,7 @@ E_Container *con; E_Desk *d; E_Zone *z; + int i; char buf[4096]; inst = data; @@ -561,7 +562,17 @@ } e_bg_default_set(buf); } - + 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++) + { + 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_update(); } =================================================================== RCS file: /cvs/e/e_modules/slideshow/e_mod_config.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- e_mod_config.c 10 Dec 2006 01:00:07 -0000 1.30 +++ e_mod_config.c 15 Dec 2006 03:02:40 -0000 1.31 @@ -111,6 +111,11 @@ e_widget_framelist_object_append (of, ob); ob = e_widget_radio_add(evas, _("Set wallpaper on current desktop"), 0, rg); e_widget_framelist_object_append (of, ob); + if(ecore_x_xinerama_screen_count_get() > 1) + { + ob = e_widget_radio_add(evas, _("Set wallpaper on current monitor (Xinerama support)"), 2, rg); + e_widget_framelist_object_append (of, ob); + } e_widget_list_object_append (o, of, 1, 1, 0.5); return o; @@ -135,8 +140,7 @@ ci->dir = evas_stringshare_add (cfdata->dir); else { - snprintf (buf, sizeof (buf), "%s/.e/e/backgrounds", - e_user_homedir_get ()); + snprintf (buf, sizeof (buf), "%s/.e/e/backgrounds", e_user_homedir_get ()); ci->dir = evas_stringshare_add (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