summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-12-08 14:48:49 +0900
committerSungtaek Hong <sth253.hong@samsung.com>2017-12-08 16:02:24 +0900
commite2dee2c92b6d497217dec542d4d5441892bb29da (patch)
tree0e2f1295c0fdeb57e3d1d3cdcae35748ca19c3cc /src
parenta9bb425dd59fd10d5cfdb5a69a8904550f46569b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_ui_clock.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_clock.c b/src/lib/elementary/efl_ui_clock.c
index 6ba2b5b2b7..ac10a6155d 100644
--- a/src/lib/elementary/efl_ui_clock.c
+++ b/src/lib/elementary/efl_ui_clock.c
@@ -397,9 +397,11 @@ _reload_format(Evas_Object *obj)
397 field->location); 397 field->location);
398 elm_layout_signal_emit(obj, buf, "elm"); 398 elm_layout_signal_emit(obj, buf, "elm");
399 } 399 }
400 snprintf 400 if (field->location + 1)
401 (buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location + 1)); 401 {
402 elm_layout_text_set(obj, buf, field->separator); 402 snprintf(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location + 1));
403 elm_layout_text_set(obj, buf, field->separator);
404 }
403 } 405 }
404 406
405 edje_object_message_signal_process(wd->resize_obj); 407 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)
525 field->location); 527 field->location);
526 elm_layout_signal_emit(obj, buf, "elm"); 528 elm_layout_signal_emit(obj, buf, "elm");
527 529
528 snprintf 530 if (field->location)
529 (buf, sizeof(buf), EDC_PART_SEPARATOR_STR, field->location); 531 {
530 elm_layout_text_set(obj, buf, field->separator); 532 snprintf(buf, sizeof(buf), EDC_PART_SEPARATOR_STR, (field->location));
533 elm_layout_text_set(obj, buf, field->separator);
534 }
531 535
532 dt_mod->field_value_display(sd->mod_data, field->item_obj); 536 dt_mod->field_value_display(sd->mod_data, field->item_obj);
533 } 537 }