jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6353194546f4f868f8df206ca05c44fd70e44372

commit 6353194546f4f868f8df206ca05c44fd70e44372
Author: Jaehyun Cho <[email protected]>
Date:   Thu Aug 31 16:21:08 2017 +0900

    naviframe: Fix to load default style if the given style does not exist
    
    Naviframe item theme name is combined with item style name and widget
    style name.
    Therefore, if the item theme name is not found, then "item/basic" item
    style name should be loaded as a default item style name.
---
 src/lib/elementary/elc_naviframe.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elc_naviframe.c 
b/src/lib/elementary/elc_naviframe.c
index 93fd0fded3..cd53e7aebe 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -353,7 +353,15 @@ _item_style_set(Elm_Naviframe_Item_Data *it,
 
    if (!elm_layout_theme_set(VIEW(it), "naviframe", buf,
                              elm_widget_style_get(WIDGET(it))))
-     CRI("Failed to set layout!");
+     {
+        /* Naviframe item theme name is combined with item style name and 
widget
+         * style name.
+         * Therefore, if the item theme name is not found, then set 
"item/basic"
+         * item style name as a default item style name. */
+        if (!elm_layout_theme_set(VIEW(it), "naviframe", "item/basic",
+                                  elm_widget_style_get(WIDGET(it))))
+          CRI("Failed to set layout!");
+     }
 
    if (sd->freeze_events)
      evas_object_freeze_events_set(VIEW(it), EINA_FALSE);

-- 


Reply via email to