forked from enlightenment/efl
efl_ui_clock: remove warning
Summary: separator0 part was not text part, thus printing error. Test Plan: Run elementary_test->Efl.Ui.Clock Reviewers: jpeg, woohyun, cedric Differential Revision: https://phab.enlightenment.org/D5629
This commit is contained in:
parent
a9bb425dd5
commit
e2dee2c92b
|
@ -397,9 +397,11 @@ _reload_format(Evas_Object *obj)
|
||||||
field->location);
|
field->location);
|
||||||
elm_layout_signal_emit(obj, buf, "elm");
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
}
|
}
|
||||||
snprintf
|
if (field->location + 1)
|
||||||
(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location + 1));
|
{
|
||||||
elm_layout_text_set(obj, buf, field->separator);
|
snprintf(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location + 1));
|
||||||
|
elm_layout_text_set(obj, buf, field->separator);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
edje_object_message_signal_process(wd->resize_obj);
|
edje_object_message_signal_process(wd->resize_obj);
|
||||||
|
@ -525,9 +527,11 @@ _efl_ui_clock_elm_widget_theme_apply(Eo *obj, Efl_Ui_Clock_Data *sd)
|
||||||
field->location);
|
field->location);
|
||||||
elm_layout_signal_emit(obj, buf, "elm");
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
|
||||||
snprintf
|
if (field->location)
|
||||||
(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, field->location);
|
{
|
||||||
elm_layout_text_set(obj, buf, field->separator);
|
snprintf(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location));
|
||||||
|
elm_layout_text_set(obj, buf, field->separator);
|
||||||
|
}
|
||||||
|
|
||||||
dt_mod->field_value_display(sd->mod_data, field->item_obj);
|
dt_mod->field_value_display(sd->mod_data, field->item_obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue