forked from enlightenment/efl
widget: Remove domain_part_text_translatable from EO
This removes the last remaining legacy-style part API from Widget. I think this is redundant with the property "translatable_text" introduced in Efl.Ui.Translatable. Ref T5363
This commit is contained in:
parent
e9dfcb44ff
commit
5f96c6fb4b
|
@ -3822,12 +3822,17 @@ elm_widget_part_translatable_text_set(Eo *obj, const char *part, const char *lab
|
|||
sd->on_translate = EINA_FALSE;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_elm_widget_domain_part_text_translatable_set(Eo *obj, Elm_Widget_Smart_Data *sd, const char *part, const char *domain, Eina_Bool translatable)
|
||||
/* legacy only */
|
||||
EAPI void
|
||||
elm_widget_domain_part_text_translatable_set(Eo *obj, const char *part, const char *domain, Eina_Bool translatable)
|
||||
{
|
||||
Elm_Translate_String_Data *ts;
|
||||
Elm_Widget_Smart_Data *sd;
|
||||
const char *text = NULL;
|
||||
|
||||
sd = efl_data_scope_safe_get(obj, MY_CLASS);
|
||||
if (!sd) return;
|
||||
|
||||
ts = _part_text_translatable_set(&sd->translate_strings, part,
|
||||
translatable, EINA_TRUE);
|
||||
if (!ts) return;
|
||||
|
|
|
@ -285,18 +285,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
|
|||
legacy: null; /* FIXME: legacy API does extra work */
|
||||
}
|
||||
|
||||
/* Translation & Text API. */
|
||||
@property domain_part_text_translatable {
|
||||
[[Translate domain text part property]]
|
||||
set {
|
||||
}
|
||||
values {
|
||||
part: string; [[Part name]]
|
||||
domain: string; [[Domain]]
|
||||
translatable: bool; [[$true if translatable, $false otherwise]]
|
||||
}
|
||||
}
|
||||
|
||||
/* Internal hooks. */
|
||||
widget_sub_object_add @protected {
|
||||
[[Virtual function handling sub objects being added.
|
||||
|
|
Loading…
Reference in New Issue