hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b49d068df8c1aff08ca7499a494736f7da0bb815

commit b49d068df8c1aff08ca7499a494736f7da0bb815
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Fri Jan 3 14:38:27 2014 +0900

    elementary/widget - don't call theme_set() until base widget is not created 
yet.
    
    On the widget creation time, we should not set the theme in the widget 
infra.
    This will cause the corruption of the theme_hook working since the widget 
is not setup yet.
    Also the theme_set() will be applied twice each widget will set the themes 
right after base widget is created.
---
 src/lib/elm_widget.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 14f4091..b1c5df5 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -1094,9 +1094,11 @@ _elm_widget_sub_object_add(Eo *obj, void *_pd, va_list 
*list)
         th = elm_widget_theme_get(sobj);
         mirrored = elm_widget_mirrored_get(sobj);
 
-        if ((scale != pscale) || (!sdc->on_create && th != pth) ||
-            (!sdc->on_create && (pmirrored != mirrored)))
-          elm_widget_theme(sobj);
+        if (!sdc->on_create)
+          {
+             if ((scale != pscale) || (th != pth) || (pmirrored != mirrored))
+               elm_widget_theme(sobj);
+          }
 
         if (elm_widget_focus_get(sobj)) _parents_focus(obj);
      }

-- 


Reply via email to