fix comp cfdlg sizing and centering

This commit is contained in:
Mike Blumenkrantz 2015-01-22 22:39:27 -05:00
parent 3e5b2ba96a
commit b89868cc65
2 changed files with 5 additions and 1 deletions

View File

@ -184,6 +184,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data
Evas_Object *ob,*ol, *of, *otb, *oi, *orec0;
E_Radio_Group *rg;
elm_win_center(cfd->dia->win, 1, 1);
orec0 = evas_object_rectangle_add(evas);
evas_object_name_set(orec0, "style_shadows");
@ -534,13 +535,15 @@ _basic_comp_style_toggle(void *data, Evas_Object *o)
}
static Evas_Object *
_basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED,
_basic_create_widgets(E_Config_Dialog *cfd,
Evas *evas,
E_Config_Dialog_Data *cfdata)
{
Evas_Object *ob,*ol, *of, *otb, *oi, *orec0, *tab;
E_Radio_Group *rg;
e_dialog_resizable_set(cfd->dia, 0);
elm_win_center(cfd->dia->win, 1, 1);
orec0 = evas_object_rectangle_add(evas);
evas_object_name_set(orec0, "style_shadows");

View File

@ -798,6 +798,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
orec0 = evas_object_rectangle_add(evas);
evas_object_name_set(orec0, "style_shadows");
elm_win_center(cfd->dia->win, 1, 1);
return _create_styles_toolbook(cfd, evas, cfdata);
}