clamp minimum shelf size to 20px in shelf config

the majority of gadgets do not render correctly/anything under this size,
so allowing it to be set is not going to be helpful to anyone
This commit is contained in:
Mike Blumenkrantz 2016-02-04 12:57:12 -05:00
parent 733224241f
commit 896781204f
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
cfdata->fit_along = cfdata->escfg->fit_along;
/* size */
cfdata->size = cfdata->escfg->size;
cfdata->size = MAX(cfdata->escfg->size, 20);
/* style */
if (cfdata->escfg->style)
@ -207,7 +207,7 @@ _basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data
/* size */
ol = e_widget_list_add(evas, 0, 0);
ow = e_widget_slider_add(evas, 1, 0, _("%1.0f pixels"), 4, 256, 4, 0,
ow = e_widget_slider_add(evas, 1, 0, _("%1.0f pixels"), 20, 256, 4, 0,
NULL, &(cfdata->size), 100);
e_widget_list_object_append(ol, ow, 1, 1, 0.5);
ow = e_widget_check_add(evas, _("Shrink to Content Width"),