diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2017-08-31 16:21:08 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2017-08-31 16:30:28 +0900 |
commit | 6353194546f4f868f8df206ca05c44fd70e44372 (patch) | |
tree | e81a505cb5e91a7daa011bce287cc3292e7623e5 /src | |
parent | 65d2dfc8925a183bf7f2709677d87edcd759e9c3 (diff) | |
download | efl-6353194546f4f868f8df206ca05c44fd70e44372.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elementary/elc_naviframe.c | 10 |
1 files changed, 9 insertions, 1 deletions
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); |