e_int_config_shelf: Add parent param to e_shelf_new_dialog function call

This stops the ability to close the Shelf Settings dialog while the
Add New Shelf dialog is open
This commit is contained in:
Christopher Michael 2021-01-20 12:37:50 -05:00
parent b177afeb43
commit 89db85e4e7
1 changed files with 3 additions and 2 deletions

View File

@ -349,9 +349,10 @@ _cb_add(void *data, void *data2 EINA_UNUSED)
if (!cfdata) return;
zone = e_comp_object_util_zone_get(cfdata->cfd->dia->win);
cfdata->dia_new_shelf = e_shelf_new_dialog(zone);
cfdata->dia_new_shelf = e_shelf_new_dialog(cfdata->cfd->dia->win, zone);
e_object_data_set(E_OBJECT(cfdata->dia_new_shelf), cfdata);
e_object_del_attach_func_set(E_OBJECT(cfdata->dia_new_shelf), _new_shelf_cb_close);
e_object_del_attach_func_set(E_OBJECT(cfdata->dia_new_shelf),
_new_shelf_cb_close);
_widgets_disable(cfdata, 1, EINA_TRUE);
cfdata->num_shelves = eina_list_count(e_config->shelves);
}