From: Tom Hacohen Date: Wed, 9 Feb 2011 16:14:02 +0000 (+0000) Subject: Elementary: Added on-the-fly UI-mirroing support to all of the widgets X-Git-Tag: v1.0.0~3438 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acbe0d82a7955076c7f987726e86ff6b559c9c2e;p=platform%2Fupstream%2Felementary.git Elementary: Added on-the-fly UI-mirroing support to all of the widgets SVN revision: 56846 --- diff --git a/src/lib/elc_anchorblock.c b/src/lib/elc_anchorblock.c index 3671f5e..a22a8a5 100644 --- a/src/lib/elc_anchorblock.c +++ b/src/lib/elc_anchorblock.c @@ -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)); } diff --git a/src/lib/elc_anchorview.c b/src/lib/elc_anchorview.c index 1be7b21..a35bc23 100644 --- a/src/lib/elc_anchorview.c +++ b/src/lib/elc_anchorview.c @@ -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)); } diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index 4dffb04..2617585 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -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)) diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c index fef1935..b0d6e7d 100644 --- a/src/lib/elc_fileselector_button.c +++ b/src/lib/elc_fileselector_button.c @@ -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)); diff --git a/src/lib/elc_fileselector_entry.c b/src/lib/elc_fileselector_entry.c index e759377..5e22e3a 100644 --- a/src/lib/elc_fileselector_entry.c +++ b/src/lib/elc_fileselector_entry.c @@ -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)) diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index a6cd8af..d938e6f 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -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)); diff --git a/src/lib/elm_actionslider.c b/src/lib/elm_actionslider.c index 31297fc..b660507 100644 --- a/src/lib/elm_actionslider.c +++ b/src/lib/elm_actionslider.c @@ -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); diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c index 9265c2e..603c783 100644 --- a/src/lib/elm_bubble.c +++ b/src/lib/elm_bubble.c @@ -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)); diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index 14e5a6a..fc5bd27 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -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) diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c index e0a0b12..7207997 100644 --- a/src/lib/elm_calendar.c +++ b/src/lib/elm_calendar.c @@ -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)); diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c index fb86519..1cc043b 100644 --- a/src/lib/elm_check.c +++ b/src/lib/elm_check.c @@ -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) diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 42df1ed..8705b30 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -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) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 14a5ba5..77790db 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -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)); diff --git a/src/lib/elm_frame.c b/src/lib/elm_frame.c index cc5028f..13ee3e9 100644 --- a/src/lib/elm_frame.c +++ b/src/lib/elm_frame.c @@ -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); diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 66a7c7a..9140f64 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -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)); diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 9d377f8..52f3e93 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -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)); diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c index 5b613d6..70cb3bf 100644 --- a/src/lib/elm_hover.c +++ b/src/lib/elm_hover.c @@ -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)); diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c index 5e2a277..ac10417 100644 --- a/src/lib/elm_index.c +++ b/src/lib/elm_index.c @@ -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); diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c index d340afd..5cac1cd 100644 --- a/src/lib/elm_label.c +++ b/src/lib/elm_label.c @@ -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); diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index c55e2b7..65b0dd4 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -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); diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index aed9be0..4de2d07 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -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) diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c index 4fed8a6..383e5f2 100644 --- a/src/lib/elm_menu.c +++ b/src/lib/elm_menu.c @@ -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) { diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c index 53873fa..e07919b 100644 --- a/src/lib/elm_notify.c +++ b/src/lib/elm_notify.c @@ -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); diff --git a/src/lib/elm_pager.c b/src/lib/elm_pager.c index fb72092..037bd22 100644 --- a/src/lib/elm_pager.c +++ b/src/lib/elm_pager.c @@ -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) { diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c index be50fbb..aacc250 100644 --- a/src/lib/elm_panel.c +++ b/src/lib/elm_panel.c @@ -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; diff --git a/src/lib/elm_panes.c b/src/lib/elm_panes.c index 937fa9b..532c25f 100644 --- a/src/lib/elm_panes.c +++ b/src/lib/elm_panes.c @@ -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); diff --git a/src/lib/elm_photo.c b/src/lib/elm_photo.c index 4496e53..ffe57ba 100644 --- a/src/lib/elm_photo.c +++ b/src/lib/elm_photo.c @@ -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)); diff --git a/src/lib/elm_progressbar.c b/src/lib/elm_progressbar.c index 17775dd..a30a02c 100644 --- a/src/lib/elm_progressbar.c +++ b/src/lib/elm_progressbar.c @@ -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)); diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c index e1407db..aa1c43f 100644 --- a/src/lib/elm_radio.c +++ b/src/lib/elm_radio.c @@ -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) diff --git a/src/lib/elm_scroller.c b/src/lib/elm_scroller.c index b1e6648..941b6ca 100644 --- a/src/lib/elm_scroller.c +++ b/src/lib/elm_scroller.c @@ -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; diff --git a/src/lib/elm_separator.c b/src/lib/elm_separator.c index e8f4750..36eca3a 100644 --- a/src/lib/elm_separator.c +++ b/src/lib/elm_separator.c @@ -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)); diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c index 381ff82..2b095f1 100644 --- a/src/lib/elm_slider.c +++ b/src/lib/elm_slider.c @@ -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)); diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c index 81eaf60..8c0ee98 100644 --- a/src/lib/elm_slideshow.c +++ b/src/lib/elm_slideshow.c @@ -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) * diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c index 4711e1a..1a3db09 100644 --- a/src/lib/elm_spinner.c +++ b/src/lib/elm_spinner.c @@ -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); diff --git a/src/lib/elm_table.c b/src/lib/elm_table.c index 1c80b22..d3181ba 100644 --- a/src/lib/elm_table.c +++ b/src/lib/elm_table.c @@ -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)); } diff --git a/src/lib/elm_toggle.c b/src/lib/elm_toggle.c index 5024fdd..eb2d239 100644 --- a/src/lib/elm_toggle.c +++ b/src/lib/elm_toggle.c @@ -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) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 8923416..feb2f57 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -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);