summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 18:47:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-30 18:54:59 +0900
commitf90d0d150163beb546e78c52786d6c2eb7706e8d (patch)
treec865d92ed8a93bdedab7c5fe3fd40269f63d4ab8 /src/lib/elementary/elm_dayselector.c
parenta2729d119d941090eed0148074f6da5eb638b720 (diff)
widget: Simplify & document "translate"
This is a protected function. It doesn't need to return anything, as all implementation just returned true, always. Also, the legacy API was just a wrapper doing nothing special (except verify that we have a widget, which the recursive code already does). Tested with fr_FR :) Ref T5363
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index 7d85d16..cef0cf1 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -55,7 +55,7 @@ _dayselector_resize(void *data,
55 elm_layout_sizing_eval(data); 55 elm_layout_sizing_eval(data);
56} 56}
57 57
58EOLIAN static Eina_Bool 58EOLIAN static void
59_elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data *sd) 59_elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data *sd)
60{ 60{
61 time_t t; 61 time_t t;
@@ -65,7 +65,7 @@ _elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data
65 Elm_Dayselector_Item_Data *it; 65 Elm_Dayselector_Item_Data *it;
66 66
67 if (sd->weekdays_names_set) 67 if (sd->weekdays_names_set)
68 return EINA_TRUE; 68 return;
69 69
70 t = time(NULL); 70 t = time(NULL);
71 localtime_r(&t, &time_daysel); 71 localtime_r(&t, &time_daysel);
@@ -77,8 +77,6 @@ _elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data
77 } 77 }
78 78
79 elm_obj_widget_translate(efl_super(obj, MY_CLASS)); 79 elm_obj_widget_translate(efl_super(obj, MY_CLASS));
80
81 return EINA_TRUE;
82} 80}
83 81
84static void 82static void