Fix occasional problem that caused a shelf reload from config dialog to

reload the wrong shelf. It is possible to have shelf->id = 0 for first
shelf, so don't use list count for that one.


SVN revision: 24227
This commit is contained in:
Christopher Michael 2006-07-27 05:13:30 +00:00
parent 2799e70b06
commit 04ac95cee8
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ e_shelf_zone_new(E_Zone *zone, const char *name, const char *style, int popup, i
evas_object_layer_set(es->o_event, layer);
evas_object_layer_set(es->o_base, layer);
}
if (id <= 0)
if (id < 0)
es->id = evas_list_count(shelves);
else
es->id = id;