Sebastian Dransfeld <[EMAIL PROTECTED]> writes:

> Holger Hanrath wrote:
> > Enlightenment CVS committal
> > 
> > Author  : sebastid
> > Project : e17
> > Module  : apps/e
> > 
> > Dir     : e17/apps/e/src/bin
> > 
> > 
> > Modified Files:
> >     e_int_config_shelf.c e_shelf.c 
> > 
> > 
> > Log Message:
> > Always keep shelf list sorted on id.
> > 
> > <-- snip -->
> > 
> >  _cb_add(void *data, void *data2)
> >  {
> >     E_Config_Dialog_Data *cfdata;
> > -   Evas_List *shelves;
> > -   
> > -   cfdata = data;
> > -   while ((shelves = e_shelf_list()))
> > -     {
> > -   E_Shelf *es;
> > -   
> > -   es = shelves->data;
> > -   e_object_del(E_OBJECT(es));
> > -     }
> > -   ////
> > -     {
> > 
> > <-- snip -->
> > 
> >     
> > +   while (shelves)
> > +     {
> > +   E_Shelf *es;
> > +
> > +   es = shelves->data;
> > +   e_object_del(E_OBJECT(es));
> > +     }
> > +
> > 
> > must not shelves somehow be updated to exit the loop?
> 
> When a shelf is deleted it will remove itself from the shelves list.

sorry didn't see that shelves is global. :)

regards Holger


-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to