elementary/ctxpopup - +mirroring feature
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 24 Oct 2011 06:49:08 +0000 (06:49 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 24 Oct 2011 06:49:08 +0000 (06:49 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64354 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_ctxpopup.c

index 2d3abb0..871fe63 100644 (file)
@@ -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", "",