Elementary: Added on-the-fly UI-mirroing support to all of the widgets
authorTom Hacohen <tom@stosb.com>
Wed, 9 Feb 2011 16:14:02 +0000 (16:14 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 9 Feb 2011 16:14:02 +0000 (16:14 +0000)
SVN revision: 56846

37 files changed:
src/lib/elc_anchorblock.c
src/lib/elc_anchorview.c
src/lib/elc_fileselector.c
src/lib/elc_fileselector_button.c
src/lib/elc_fileselector_entry.c
src/lib/elc_hoversel.c
src/lib/elm_actionslider.c
src/lib/elm_bubble.c
src/lib/elm_button.c
src/lib/elm_calendar.c
src/lib/elm_check.c
src/lib/elm_conform.c
src/lib/elm_entry.c
src/lib/elm_frame.c
src/lib/elm_gengrid.c
src/lib/elm_genlist.c
src/lib/elm_hover.c
src/lib/elm_index.c
src/lib/elm_label.c
src/lib/elm_layout.c
src/lib/elm_list.c
src/lib/elm_menu.c
src/lib/elm_notify.c
src/lib/elm_pager.c
src/lib/elm_panel.c
src/lib/elm_panes.c
src/lib/elm_photo.c
src/lib/elm_progressbar.c
src/lib/elm_radio.c
src/lib/elm_scroller.c
src/lib/elm_separator.c
src/lib/elm_slider.c
src/lib/elm_slideshow.c
src/lib/elm_spinner.c
src/lib/elm_table.c
src/lib/elm_toggle.c
src/lib/elm_toolbar.c

index 3671f5e23e95eba9b40c19463a070e1e8405eefc..a22a8a53ff058f47e28ed1723759d3a4f78345da 100644 (file)
@@ -88,6 +88,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
 }
 
index 1be7b21eee77a5935b045e3883675901972444ec..a35bc23a37c359d37fa7e70fb568aee1b08b1d48 100644 (file)
@@ -81,6 +81,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
 }
 
index 4dffb044baebad3e512b792da6ddd5dec7fb12be..261758590b29c098074c00fe7a6a2320074a9fba 100644 (file)
@@ -134,6 +134,7 @@ _theme_hook(Evas_Object *obj)
    char buf[1024];
 
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _elm_theme_object_set(obj, wd->edje, "fileselector", "base", style);
 
    if (elm_object_disabled_get(obj))
index fef1935793f6f520a98813fd564461f7f083f14e..b0d6e7dd4cf7871123b104c803d675e0317cda89 100644 (file)
@@ -96,6 +96,7 @@ _theme_hook(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    char buf[4096];
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    snprintf(buf, sizeof(buf), "fileselector_button/%s",
             elm_widget_style_get(obj));
index e75937706d97d25e4aaebaba1d6d2a96ae3ef901..5e22e3aafd59c8039117f82778492adaf9c42ae5 100644 (file)
@@ -170,6 +170,7 @@ _theme_hook(Evas_Object *obj)
    char buf[1024];
 
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->edje, "fileselector_entry", "base", style);
    if (elm_object_disabled_get(obj))
index a6cd8afee04a83235510f7d6814157d5bda32c07..d938e6fe3a2ef6468b17c106d64c5357dc11487b 100644 (file)
@@ -91,6 +91,7 @@ _theme_hook(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    char buf[4096];
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    elm_hoversel_hover_end(obj);
    if (wd->horizontal)
       snprintf(buf, sizeof(buf), "hoversel_horizontal/%s", elm_widget_style_get(obj));
index 31297fcdbc9e7e66a592f2567df6c1068a0757d8..b6605074e77723a0dbe04c3cc87e0881e0e4722e 100644 (file)
@@ -129,6 +129,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    if (!edje_object_part_swallow_get(wd->as, "elm.drag_button_base"))
      edje_object_part_unswallow(wd->as, wd->drag_button_base);
 
index 9265c2ea734bc5a8cf2f7541ff649ee5422bd850..603c783aa6beee21136b49b4543594eeaa2eb8bb 100644 (file)
@@ -60,6 +60,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->bbl, "bubble", wd->corner,
                          elm_widget_style_get(obj));
index 14e5a6a79bba1f9f33d217ece3b21d26400392ed..fc5bd2743bf55fba550a6830dd9636963d29467a 100644 (file)
@@ -106,6 +106,7 @@ _theme_hook(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    const char *str;
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->btn, "button", "base", elm_widget_style_get(obj));
    if (wd->icon)
index e0a0b120ffbefd624d5176120015f531410ac963..7207997397c2dbeab62818809b230ba6aa6f68ff 100644 (file)
@@ -448,6 +448,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _elm_theme_object_set(obj, wd->calendar, "calendar", "base",
                          elm_widget_style_get(obj));
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
index fb86519c651ff3e5c3a363267121426317351a8d..1cc043bb9cc99ffda1353de72f50ed3edf1ae936 100644 (file)
@@ -108,6 +108,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->chk, "check", "base", elm_widget_style_get(obj));
    if (wd->icon)
index 42df1ed3b83a6c515eb0044cef6ce575bc7924b4..8705b3018933423c359df760c4f7459b0edbba3e 100644 (file)
@@ -55,6 +55,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->base, "conformant", "base", elm_widget_style_get(obj));
    if (wd->content)
index 14a5ba528f1c4f7d4e8ded833bb4a7b613df95a6..77790db4b452a35fa955a352ef68e3ae71a11af3 100644 (file)
@@ -460,6 +460,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    const char *t;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
 
    t = eina_stringshare_add(elm_entry_entry_get(obj));
index cc5028fa4ca225781d2c39ddad554348008a1e14..13ee3e95afe6626397b102dd30462c2d317ed66c 100644 (file)
@@ -47,6 +47,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->frm, "frame", "base", elm_widget_style_get(obj));
    edje_object_part_text_set(wd->frm, "elm.text", wd->label);
index 66a7c7a27352f62888474e8006eecfdffa47c7df..9140f64f6404a80f19d4c3afc737e7ee75f00d36 100644 (file)
@@ -672,6 +672,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    elm_smart_scroller_object_theme_set(obj, wd->scr, "gengrid", "base",
                                        elm_widget_style_get(obj));
index 9d377f8d43ed99d6bcbf58d006af8eaf8d4f1d32..52f3e93d7fff0f513d55b9fd42f02c62de6b5d60 100644 (file)
@@ -740,6 +740,7 @@ _theme_hook(Evas_Object *obj)
    Item_Block *itb;
    if (!wd) return;
    _item_cache_zero(wd);
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    elm_smart_scroller_object_theme_set(obj, wd->scr, "genlist", "base",
                                        elm_widget_style_get(obj));
index 5b613d61c0e3507bd911666bf641062a768297ed..70cb3bf5626866154870e44d396f3cf4ec38bd74 100644 (file)
@@ -140,6 +140,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    // FIXME: hover contents doesn't seem to propagate resizes properly
    _elm_theme_object_set(obj, wd->cov, "hover", "base", elm_widget_style_get(obj));
index 5e2a27761ba376483d51d9ed8e0c1e948f17a231..ac10417f918460c406bbcf68463308cbded2e584 100644 (file)
@@ -106,6 +106,7 @@ _theme_hook(Evas_Object *obj)
    Evas_Coord minw = 0, minh = 0;
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
 
    _index_box_clear(obj, wd->bx[0], 0);
    _index_box_clear(obj, wd->bx[1], 1);
index d340afdbc5b844a6b13c5811e924d312c6b9d468..5cac1cd403396866a4660b0441bb97c02df0cc5a 100644 (file)
@@ -117,6 +117,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _theme_change(obj);
    edje_object_part_text_set(wd->lbl, "elm.text", wd->label);
index c55e2b710de6d8a20c60040dda0ac2c963ef2ded..65b0dd43c1b767d3b5bc7fd136231a463b9631ce 100644 (file)
@@ -100,6 +100,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    edje_object_scale_set(wd->lay, elm_widget_scale_get(obj) *
                          _elm_config->scale);
index aed9be0992b961972d4b1ad71a3dbafbb8e0c6bb..4de2d072f4dd1607059158a350a71c73fc3352bd 100644 (file)
@@ -559,6 +559,7 @@ _theme_hook(Evas_Object *obj)
    Eina_List *n;
 
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
 
    if (wd->scr)
index 4fed8a68734301273fb9a9144b06472d5f92253b..383e5f2927d096fbf01c52dd5877331a87b8e470 100644 (file)
@@ -98,6 +98,7 @@ _theme_hook(Evas_Object *obj)
    Elm_Menu_Item *item;
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    ll = eina_list_append(ll, wd->items);
    EINA_LIST_FOREACH(ll, _ll, l)
      {
index 53873fa62c2e56c80546356eb9074d0248fa318a..e07919b54fcc0494c4187bec9c2403abf9e73fa5 100644 (file)
@@ -244,6 +244,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _notify_theme_apply(obj);
    if (wd->block_events) _block_events_theme_apply(obj);
index fb72092f082a1d05c05afa8d2ac71089e82e9afc..037bd22d6595a22d3d33d219ecbe2040bf71e03c 100644 (file)
@@ -71,6 +71,7 @@ _theme_hook(Evas_Object *obj)
    Eina_List *l;
    Item *it;
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    EINA_LIST_FOREACH(wd->stack, l, it)
      {
index be50fbbd2288ae2b538c1a5a2f2c3efb64f6022b..aacc2504d10b70001ac175d26fc900c22e40af01 100644 (file)
@@ -60,6 +60,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    if (wd->scr)
      {
         Evas_Object *edj;
index 937fa9bad681d433eb6bc7bb40d32328fa7d247d..532c25fe54019d3ba70a12a79cf95424a3ed8542 100644 (file)
@@ -60,6 +60,7 @@ _theme_hook(Evas_Object *obj)
    double size;
 
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    size = elm_panes_content_left_size_get(obj);
    
index 4496e53a3d7ddccfad63a10230d26993f9088329..ffe57ba6677179309022c56896b5dac0f7718a23 100644 (file)
@@ -55,6 +55,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(wd->frm, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->frm, "photo", "base", 
                          elm_widget_style_get(obj));
index 17775dd4bd61dde3fc4cf138ebfeae2cd22f15b7..a30a02ced43f3a1aabea76095760a8c3614fa561 100644 (file)
@@ -76,6 +76,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    if (wd->horizontal)
      _elm_theme_object_set(obj, wd->progressbar, "progressbar", "horizontal", elm_widget_style_get(obj));
index e1407dbb97224c1ce9c4ec2159d0b4bc1424994a..aa1c43fbe438d4c78a889acb1589a752593801ae 100644 (file)
@@ -131,6 +131,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->radio, "radio", "base", elm_widget_style_get(obj));
    if (wd->icon)
index b1e6648fd989488620b58587d98d992823d25242..941b6caedebfe829dcb5ede5b61afdde0b316dcc 100644 (file)
@@ -187,6 +187,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    if (wd->scr)
      {
         Evas_Object *edj;
index e8f4750a11d2c9e5fba29289e0821b79533a2003..36eca3a1a48026cb4b4c97809171e43269fa9491 100644 (file)
@@ -43,6 +43,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    if (wd->horizontal)
      _elm_theme_object_set(obj, wd->sep, "separator", "horizontal", elm_widget_style_get(obj));
index 381ff8238dc5553ed7cad9ae318d20ea41e747f8..2b095f172368f79a9b8cb57adc0847cf024d23ea 100644 (file)
@@ -197,6 +197,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    if (wd->horizontal)
      _elm_theme_object_set(obj, wd->slider, "slider", "horizontal", elm_widget_style_get(obj));
index 81eaf60d3f04e22862fa221833337cf45558bfbf..8c0ee988a3a184e008dd33b46cd4b59f94a28c31 100644 (file)
@@ -146,6 +146,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->slideshow, "slideshow", "base", elm_widget_style_get(obj));
    edje_object_scale_set(wd->slideshow, elm_widget_scale_get(obj) *
index 4711e1ad33efba76707862855672e54df5f9b479..1a3db09190c6d063f4e9793281c814349373a96a 100644 (file)
@@ -127,6 +127,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->spinner, "spinner", "base", elm_widget_style_get(obj));
    edje_object_part_swallow(wd->spinner, "elm.swallow.entry", wd->ent);
index 1c80b22d6b59e4bc7823c1e719c4d1c3c43c2e6c..d3181ba8d08b9ee3c630c04a1304a193775456cf 100644 (file)
@@ -90,6 +90,7 @@ _mirrored_set(Evas_Object *obj, Eina_Bool rtl)
 static void
 _theme_hook(Evas_Object *obj)
 {
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
 }
 
index 5024fdde33843adcce155a57c6af8e2911dd9c0a..eb2d2394b319ecf53041a62fb0f30db03c9db78a 100644 (file)
@@ -116,6 +116,7 @@ _theme_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    _elm_theme_object_set(obj, wd->tgl, "toggle", "base", elm_widget_style_get(obj));
    if (wd->icon)
index 89234160ef1e70e1433fd72e8ccdc23b48647f53..feb2f5727ff3c2f513aeb2eff4cfdb9009857638 100644 (file)
@@ -337,6 +337,7 @@ _theme_hook(Evas_Object *obj)
    double scale = 0;
 
    if (!wd) return;
+   _elm_widget_mirrored_reload(obj);
    elm_smart_scroller_object_theme_set(obj, wd->scr, "toolbar", "base", elm_widget_style_get(obj));
    _mirrored_set(obj, elm_widget_mirrored_get(obj));
    scale = (elm_widget_scale_get(obj) * _elm_config->scale);