set shelf autohide on creation, ensure autohide settings have been applied

ticket #1482


SVN revision: 76346
This commit is contained in:
Mike Blumenkrantz 2012-09-08 19:23:25 +00:00
parent 1e0d75836e
commit a788723e41
1 changed files with 4 additions and 3 deletions

View File

@ -964,8 +964,9 @@ e_shelf_autohide_set(E_Shelf *es, Eina_Bool autohide)
E_OBJECT_CHECK(es);
E_OBJECT_TYPE_CHECK(es, E_SHELF_TYPE);
if (es->cfg->autohide == autohide) return;
es->cfg->autohide = !!autohide;
autohide = !!autohide;
if ((es->cfg->autohide == autohide) && ((!!es->autohide) == autohide)) return;
es->cfg->autohide = autohide;
if (!es->cfg->autohide)
{
if (!es->autohide) return;
@ -1008,7 +1009,7 @@ e_shelf_config_new(E_Zone *zone, E_Config_Shelf *cf_es)
es->fit_along = cf_es->fit_along;
es->fit_size = cf_es->fit_size;
e_shelf_autohide_set(es, cf_es->autohide);
e_shelf_orient(es, cf_es->orient);
e_shelf_position_calc(es);
e_shelf_populate(es);