summaryrefslogtreecommitdiff
path: root/src/widget/mf-ug-navi-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/mf-ug-navi-bar.c')
-rw-r--r--src/widget/mf-ug-navi-bar.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/widget/mf-ug-navi-bar.c b/src/widget/mf-ug-navi-bar.c
index de3ebd6..6bddd94 100644
--- a/src/widget/mf-ug-navi-bar.c
+++ b/src/widget/mf-ug-navi-bar.c
@@ -734,24 +734,18 @@ void mf_ug_navi_bar_create_default_view(void *data)
elm_box_pack_end(box, newContent);
ugd->ug_MainWindow.ug_pNaviBox = box;
elm_object_part_content_set(pNaviLayout, "part1", box);
-
- if (ugd->ug_UiGadget.ug_iSelectMode == SINGLE_ALL_MODE ||
- ugd->ug_UiGadget.ug_iSelectMode == SINGLE_FILE_MODE) {
- mf_ug_navi_bar_push_content(ugd, pNaviLayout);
- } else {
- if (eina_list_count(ugd->ug_UiGadget.ug_pFilterList) != 0) {
- if (ugd->ug_MainWindow.ug_pNaviBox) {
- Evas_Object *pSelectAllLayout = NULL;
- Evas_Object *pSelectAllCheckBox = NULL;
- mf_ug_object_create_select_all_layout(ugd->ug_MainWindow.ug_pNaviBar, mf_ug_select_all_cb, (Evas_Object_Event_Cb)mf_ug_item_sel_all_press_cb , ugd, &pSelectAllCheckBox, &pSelectAllLayout);
- ugd->ug_MainWindow.ug_pSelectAllCheckBox = pSelectAllCheckBox;
- if (pSelectAllLayout && pSelectAllCheckBox) {
- elm_box_pack_start(ugd->ug_MainWindow.ug_pNaviBox, pSelectAllLayout);
- }
+ if (eina_list_count(ugd->ug_UiGadget.ug_pFilterList) != 0) {
+ if (ugd->ug_MainWindow.ug_pNaviBox) {
+ Evas_Object *pSelectAllLayout = NULL;
+ Evas_Object *pSelectAllCheckBox = NULL;
+ mf_ug_object_create_select_all_layout(ugd->ug_MainWindow.ug_pNaviBar, mf_ug_select_all_cb, (Evas_Object_Event_Cb)mf_ug_item_sel_all_press_cb , ugd, &pSelectAllCheckBox, &pSelectAllLayout);
+ ugd->ug_MainWindow.ug_pSelectAllCheckBox = pSelectAllCheckBox;
+ if (pSelectAllLayout && pSelectAllCheckBox) {
+ elm_box_pack_start(ugd->ug_MainWindow.ug_pNaviBox, pSelectAllLayout);
}
}
- mf_ug_navi_bar_push_content(ugd, pNaviLayout);
}
+ mf_ug_navi_bar_push_content(ugd, pNaviLayout);
/*add control bar for navigation bar */
/*mf_ug_ctrl_bar_set(ugd, pNavi_s);*/
mf_ug_navi_bar_set_ctrl_button(ugd);