use better codepath for refreshing shelf after config has changed

ticket #1465


SVN revision: 76312
This commit is contained in:
Mike Blumenkrantz 2012-09-07 14:02:33 +00:00
parent 620b6330cf
commit eefe608050
1 changed files with 5 additions and 9 deletions

View File

@ -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)