From f77a7a7554d5d35ff6775414cca01975353dd967 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 24 Oct 2011 06:49:08 +0000 Subject: [PATCH] elementary/ctxpopup - +mirroring feature SVN revision: 64354 --- src/lib/elc_ctxpopup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 2d3abb0..871fe63 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -713,13 +713,19 @@ _theme_hook(Evas_Object *obj) Widget_Data *wd; Eina_List *elist; Elm_Ctxpopup_Item *item; + Eina_Bool rtl; wd = elm_widget_data_get(obj); if (!wd) return; + _elm_widget_mirrored_reload(obj); + rtl = elm_widget_mirrored_get(obj); + //Items EINA_LIST_FOREACH(wd->items, elist, item) { + edje_object_mirrored_set(VIEW(item), rtl); + if (item->label && item->icon) _elm_theme_object_set(obj, VIEW(item), "ctxpopup", "icon_text_style_item", @@ -978,6 +984,7 @@ _item_new(Elm_Ctxpopup_Item *item, char *group_name) if (!wd) return; VIEW(item) = edje_object_add(evas_object_evas_get(wd->base)); + edje_object_mirrored_set(VIEW(item), elm_widget_mirrored_get(WIDGET(item))); _elm_theme_object_set(WIDGET(item), VIEW(item), "ctxpopup", group_name, elm_widget_style_get(WIDGET(item))); edje_object_signal_callback_add(VIEW(item), "elm,action,click", "", -- 2.7.4