elementary/widget - something context change left this incompleted code?
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 8 Feb 2013 09:24:05 +0000 (09:24 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 8 Feb 2013 09:24:05 +0000 (09:24 +0000)
SVN revision: 83774

src/lib/elm_widget.c

index 30d3d90..3e44b01 100644 (file)
@@ -3707,12 +3707,18 @@ _elm_widget_translatable_text_part_get(Eo *obj EINA_UNUSED, void *_pd, va_list *
 EAPI void
 elm_widget_translate(Evas_Object *obj)
 {
+   ELM_WIDGET_CHECK(obj);
+   eo_do(obj, elm_wdg_translate(NULL));
+}
+
+static void
+_elm_widget_translate(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
+{
    const Eina_List *l;
    Evas_Object *child;
 #ifdef HAVE_GETTEXT
    Elm_Translate_String_Data *ts;
 #endif
-
    API_ENTRY return;
 
    EINA_LIST_FOREACH(sd->subobjs, l, child)
@@ -3730,13 +3736,6 @@ elm_widget_translate(Evas_Object *obj)
 #endif
 }
 
-static void
-_elm_widget_translate(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
-{
-   Eina_Bool *ret = va_arg(*list, Eina_Bool *);
-   if (ret) *ret = EINA_FALSE;
-}
-
 EAPI void
 elm_widget_content_part_set(Evas_Object *obj,
                             const char *part,