From: hermet Date: Mon, 24 Oct 2011 06:49:08 +0000 (+0000) Subject: elementary/ctxpopup - +mirroring feature X-Git-Tag: REL_F_I9500_20120323_1~17^2~1511 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f87e57c63ad6f6e53154524be7f7051d70b402f;p=framework%2Fuifw%2Felementary.git elementary/ctxpopup - +mirroring feature git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64354 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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", "",