summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_naviframe.c
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2017-08-31 16:21:08 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-08-31 16:30:28 +0900
commit6353194546f4f868f8df206ca05c44fd70e44372 (patch)
treee81a505cb5e91a7daa011bce287cc3292e7623e5 /src/lib/elementary/elc_naviframe.c
parent65d2dfc8925a183bf7f2709677d87edcd759e9c3 (diff)
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/lib/elementary/elc_naviframe.c')
-rw-r--r--src/lib/elementary/elc_naviframe.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c
index 93fd0fd..cd53e7a 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,
353 353
354 if (!elm_layout_theme_set(VIEW(it), "naviframe", buf, 354 if (!elm_layout_theme_set(VIEW(it), "naviframe", buf,
355 elm_widget_style_get(WIDGET(it)))) 355 elm_widget_style_get(WIDGET(it))))
356 CRI("Failed to set layout!"); 356 {
357 /* Naviframe item theme name is combined with item style name and widget
358 * style name.
359 * Therefore, if the item theme name is not found, then set "item/basic"
360 * item style name as a default item style name. */
361 if (!elm_layout_theme_set(VIEW(it), "naviframe", "item/basic",
362 elm_widget_style_get(WIDGET(it))))
363 CRI("Failed to set layout!");
364 }
357 365
358 if (sd->freeze_events) 366 if (sd->freeze_events)
359 evas_object_freeze_events_set(VIEW(it), EINA_FALSE); 367 evas_object_freeze_events_set(VIEW(it), EINA_FALSE);