From eefe60805020b52fb804c33149209c0d419e9edf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 7 Sep 2012 14:02:33 +0000 Subject: [PATCH] use better codepath for refreshing shelf after config has changed ticket #1465 SVN revision: 76312 --- src/bin/e_int_shelf_config.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/bin/e_int_shelf_config.c b/src/bin/e_int_shelf_config.c index e1539362a..6ec77470d 100644 --- a/src/bin/e_int_shelf_config.c +++ b/src/bin/e_int_shelf_config.c @@ -354,20 +354,16 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) if (recreate) { E_Zone *zone; + E_Config_Shelf *cf_es; zone = cfdata->es->zone; + cf_es = cfdata->es->cfg; + cf_es->fit_along = cfdata->escfg->fit_along; + cf_es->orient = cfdata->escfg->orient; cfdata->es->config_dialog = NULL; e_object_del(E_OBJECT(cfdata->es)); - cfdata->es = - e_shelf_zone_new(zone, cfdata->escfg->name, - cfdata->escfg->style, cfdata->escfg->popup, - cfdata->escfg->layer, cfdata->escfg->id); - cfdata->es->cfg = cfdata->escfg; - cfdata->es->fit_along = cfdata->escfg->fit_along; - e_shelf_orient(cfdata->es, cfdata->escfg->orient); - e_shelf_position_calc(cfdata->es); - e_shelf_populate(cfdata->es); + cfdata->es = e_shelf_config_new(zone, cf_es); } if (cfdata->escfg->desk_show_mode)