From a788723e41f50103d8a265d223198bf4569f02f0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 8 Sep 2012 19:23:25 +0000 Subject: [PATCH] set shelf autohide on creation, ensure autohide settings have been applied ticket #1482 SVN revision: 76346 --- src/bin/e_shelf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c index a64a1b864..235e127bb 100644 --- a/src/bin/e_shelf.c +++ b/src/bin/e_shelf.c @@ -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);