forked from enlightenment/enventor
settings: allow null arguments on build/text setting.
This commit is contained in:
parent
5e8d2e518d
commit
e3c03b38ba
|
@ -99,7 +99,7 @@ build_setting_focus_set(build_setting_data *bsd)
|
|||
void
|
||||
build_setting_config_set(build_setting_data *bsd)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(bsd);
|
||||
if (!bsd) return;
|
||||
|
||||
config_img_path_set(elm_object_text_get(bsd->img_path_entry));
|
||||
config_snd_path_set(elm_object_text_get(bsd->snd_path_entry));
|
||||
|
@ -110,7 +110,7 @@ build_setting_config_set(build_setting_data *bsd)
|
|||
void
|
||||
build_setting_reset(build_setting_data *bsd)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(bsd);
|
||||
if (!bsd) return;
|
||||
|
||||
img_path_entry_update(bsd->img_path_entry,
|
||||
(Eina_List *)config_img_path_list_get());
|
||||
|
@ -232,7 +232,7 @@ build_setting_init(void)
|
|||
void
|
||||
build_setting_term(build_setting_data *bsd)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(bsd);
|
||||
if (!bsd) return;
|
||||
|
||||
evas_object_del(bsd->layout);
|
||||
free(bsd);
|
||||
|
|
|
@ -963,7 +963,7 @@ text_setting_focus_set(text_setting_data *tsd)
|
|||
void
|
||||
text_setting_config_set(text_setting_data *tsd)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(tsd);
|
||||
if (!tsd) return;
|
||||
|
||||
config_font_set(tsd->font_name, tsd->font_style);
|
||||
config_font_scale_set((float) elm_slider_value_get(tsd->slider_font));
|
||||
|
@ -1004,7 +1004,7 @@ text_setting_init(void)
|
|||
void
|
||||
text_setting_term(text_setting_data *tsd)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(tsd);
|
||||
if (!tsd) return;
|
||||
|
||||
evas_object_del(tsd->color_ctxpopup);
|
||||
free(tsd->color_keyword_list);
|
||||
|
|
Loading…
Reference in New Issue