summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-10-24 06:49:08 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-10-24 06:49:08 +0000
commit40b7dacfe9c97398ed31f06de9e28db18368a282 (patch)
treeebb089fe02aec8cc75f6392baf0ce1cac664216b /legacy
parent4cad4f12a866137abc6460637c102a93b2c63a61 (diff)
elementary/ctxpopup - +mirroring feature
SVN revision: 64354
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elc_ctxpopup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elc_ctxpopup.c b/legacy/elementary/src/lib/elc_ctxpopup.c
index 2d3abb06a2..871fe63795 100644
--- a/legacy/elementary/src/lib/elc_ctxpopup.c
+++ b/legacy/elementary/src/lib/elc_ctxpopup.c
@@ -713,13 +713,19 @@ _theme_hook(Evas_Object *obj)
713 Widget_Data *wd; 713 Widget_Data *wd;
714 Eina_List *elist; 714 Eina_List *elist;
715 Elm_Ctxpopup_Item *item; 715 Elm_Ctxpopup_Item *item;
716 Eina_Bool rtl;
716 717
717 wd = elm_widget_data_get(obj); 718 wd = elm_widget_data_get(obj);
718 if (!wd) return; 719 if (!wd) return;
719 720
721 _elm_widget_mirrored_reload(obj);
722 rtl = elm_widget_mirrored_get(obj);
723
720 //Items 724 //Items
721 EINA_LIST_FOREACH(wd->items, elist, item) 725 EINA_LIST_FOREACH(wd->items, elist, item)
722 { 726 {
727 edje_object_mirrored_set(VIEW(item), rtl);
728
723 if (item->label && item->icon) 729 if (item->label && item->icon)
724 _elm_theme_object_set(obj, VIEW(item), "ctxpopup", 730 _elm_theme_object_set(obj, VIEW(item), "ctxpopup",
725 "icon_text_style_item", 731 "icon_text_style_item",
@@ -978,6 +984,7 @@ _item_new(Elm_Ctxpopup_Item *item, char *group_name)
978 if (!wd) return; 984 if (!wd) return;
979 985
980 VIEW(item) = edje_object_add(evas_object_evas_get(wd->base)); 986 VIEW(item) = edje_object_add(evas_object_evas_get(wd->base));
987 edje_object_mirrored_set(VIEW(item), elm_widget_mirrored_get(WIDGET(item)));
981 _elm_theme_object_set(WIDGET(item), VIEW(item), "ctxpopup", group_name, 988 _elm_theme_object_set(WIDGET(item), VIEW(item), "ctxpopup", group_name,
982 elm_widget_style_get(WIDGET(item))); 989 elm_widget_style_get(WIDGET(item)));
983 edje_object_signal_callback_add(VIEW(item), "elm,action,click", "", 990 edje_object_signal_callback_add(VIEW(item), "elm,action,click", "",