forked from enlightenment/enlightenment
parent
5693b420a3
commit
096d4b0623
|
@ -20,7 +20,10 @@ il_config_policy_show(E_Container *con, const char *params)
|
||||||
E_Config_Dialog_View *v;
|
E_Config_Dialog_View *v;
|
||||||
|
|
||||||
if (e_config_dialog_find("E", "_config_illume_policy")) return;
|
if (e_config_dialog_find("E", "_config_illume_policy")) return;
|
||||||
|
|
||||||
v = E_NEW(E_Config_Dialog_View, 1);
|
v = E_NEW(E_Config_Dialog_View, 1);
|
||||||
|
if (!v) return;
|
||||||
|
|
||||||
v->create_cfdata = _il_config_policy_create;
|
v->create_cfdata = _il_config_policy_create;
|
||||||
v->free_cfdata = _il_config_policy_free;
|
v->free_cfdata = _il_config_policy_free;
|
||||||
v->basic.create_widgets = _il_config_policy_ui;
|
v->basic.create_widgets = _il_config_policy_ui;
|
||||||
|
@ -30,6 +33,7 @@ il_config_policy_show(E_Container *con, const char *params)
|
||||||
cfd = e_config_dialog_new(con, _("Policy"), "E",
|
cfd = e_config_dialog_new(con, _("Policy"), "E",
|
||||||
"_config_illume_policy",
|
"_config_illume_policy",
|
||||||
"enlightenment/policy", 0, v, NULL);
|
"enlightenment/policy", 0, v, NULL);
|
||||||
|
if (!cfd) return;
|
||||||
e_dialog_resizable_set(cfd->dia, 1);
|
e_dialog_resizable_set(cfd->dia, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +69,8 @@ _il_config_policy_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfd
|
||||||
e_widget_ilist_go(ow);
|
e_widget_ilist_go(ow);
|
||||||
|
|
||||||
policies = e_illume_layout_policies_get();
|
policies = e_illume_layout_policies_get();
|
||||||
|
if (policies)
|
||||||
|
{
|
||||||
EINA_LIST_FREE(policies, p)
|
EINA_LIST_FREE(policies, p)
|
||||||
{
|
{
|
||||||
e_widget_ilist_append(ow, NULL, strdup(p->api->label),
|
e_widget_ilist_append(ow, NULL, strdup(p->api->label),
|
||||||
|
@ -82,6 +88,7 @@ _il_config_policy_ui(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfd
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
e_widget_size_min_set(ow, 100, 200);
|
e_widget_size_min_set(ow, 100, 200);
|
||||||
e_widget_ilist_go(ow);
|
e_widget_ilist_go(ow);
|
||||||
|
|
Loading…
Reference in New Issue