From 0c61439b66e029cd9b3187e067762d957d0ff92d Mon Sep 17 00:00:00 2001 From: sachiel Date: Wed, 19 Oct 2011 14:17:14 +0000 Subject: [PATCH] Get us some nice auto translation scheme [for tooltips] --- src/lib/elm_widget.c | 3 ++- src/lib/els_tooltip.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 8ce4f86..9e71424 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -2858,9 +2858,10 @@ _elm_widget_item_tooltip_label_create(void *data, static Evas_Object * _elm_widget_item_tooltip_trans_label_create(void *data, Evas_Object *obj __UNUSED__, + Evas_Object *tooltip, void *item __UNUSED__) { - Evas_Object *label = elm_label_add(obj); + Evas_Object *label = elm_label_add(tooltip); if (!label) return NULL; elm_object_style_set(label, "tooltip"); diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index 5db46e0..4c083cf 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -566,9 +566,9 @@ _elm_tooltip_label_create(void *data, Evas_Object *obj __UNUSED__, Evas_Object * } static Evas_Object * -_elm_tooltip_trans_label_create(void *data, Evas_Object *obj) +_elm_tooltip_trans_label_create(void *data, Evas_Object *obj __UNUSED__, Evas_Object *tooltip) { - Evas_Object *label = elm_label_add(obj); + Evas_Object *label = elm_label_add(tooltip); const char **text = data; if (!label) return NULL; -- 2.7.4