summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-25 15:47:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commit5f96c6fb4b09e45b5de18d7c8cb6a28fca8a489a (patch)
treeb709035a259419b6d2f4e31bc48e237ea48761d5 /src/lib/elementary
parente9dfcb44ffe370f6507d563f45676609bd93a41a (diff)
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_widget.c9
-rw-r--r--src/lib/elementary/elm_widget.eo12
2 files changed, 7 insertions, 14 deletions
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index 3efab18acf..45c2864787 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -3822,12 +3822,17 @@ elm_widget_part_translatable_text_set(Eo *obj, const char *part, const char *lab
3822 sd->on_translate = EINA_FALSE; 3822 sd->on_translate = EINA_FALSE;
3823} 3823}
3824 3824
3825EOLIAN static void 3825/* legacy only */
3826_elm_widget_domain_part_text_translatable_set(Eo *obj, Elm_Widget_Smart_Data *sd, const char *part, const char *domain, Eina_Bool translatable) 3826EAPI void
3827elm_widget_domain_part_text_translatable_set(Eo *obj, const char *part, const char *domain, Eina_Bool translatable)
3827{ 3828{
3828 Elm_Translate_String_Data *ts; 3829 Elm_Translate_String_Data *ts;
3830 Elm_Widget_Smart_Data *sd;
3829 const char *text = NULL; 3831 const char *text = NULL;
3830 3832
3833 sd = efl_data_scope_safe_get(obj, MY_CLASS);
3834 if (!sd) return;
3835
3831 ts = _part_text_translatable_set(&sd->translate_strings, part, 3836 ts = _part_text_translatable_set(&sd->translate_strings, part,
3832 translatable, EINA_TRUE); 3837 translatable, EINA_TRUE);
3833 if (!ts) return; 3838 if (!ts) return;
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 679b7beff0..2479139f50 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -285,18 +285,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
285 legacy: null; /* FIXME: legacy API does extra work */ 285 legacy: null; /* FIXME: legacy API does extra work */
286 } 286 }
287 287
288 /* Translation & Text API. */
289 @property domain_part_text_translatable {
290 [[Translate domain text part property]]
291 set {
292 }
293 values {
294 part: string; [[Part name]]
295 domain: string; [[Domain]]
296 translatable: bool; [[$true if translatable, $false otherwise]]
297 }
298 }
299
300 /* Internal hooks. */ 288 /* Internal hooks. */
301 widget_sub_object_add @protected { 289 widget_sub_object_add @protected {
302 [[Virtual function handling sub objects being added. 290 [[Virtual function handling sub objects being added.