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

Re: [E-devel] Slideshow patch



A wandering we go through the learning of the EFL =P.  Today's lesson?
Gadcon != Gadcon Class.

The patch attatched fixes a minor functionality issue in the previous
patch.  TODO: Fix how all of slideshow does randomization, and insure
that when they startup they get different randoms.

-zgold


On 12/14/06, Christopher Michael <cpmichael1@comcast.net> wrote:
Zachary Goldberg wrote:
> As per a conversation i've had with devilhorns this provides xinerama
> support.  Essentially, if you have xinerama running, there is a new
> option in the config dialoge for slideshow.  Possible options are now
>
> -Change BG for all desktops
> -Change BG for this desktop
> -Change BG for this zone (all desktops on this monitor)
>
>
>
> --ZGold
>
In cvs...Thank You :)

dh

? e_mod_main.c.save
Index: e_mod_main.c
===================================================================
RCS file: /var/cvs/e/e_modules/slideshow/e_mod_main.c,v
retrieving revision 1.40
diff -r1.40 e_mod_main.c
536a537
>    E_Gadcon *g;
542a544,545
>    g = inst->gcc->gadcon;
>    if(!g){return;}
567,569c570,571
< 	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++)
571,572c573,574
<             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);