if (list == NULL) {
__gl_timelne_show_nocontents(timeline_d);
- elm_naviframe_item_title_enabled_set(timeline_d->nf_it, EINA_FALSE, EINA_FALSE);
+ elm_naviframe_item_title_enabled_set(timeline_d->nf_it, EINA_TRUE, EINA_TRUE);
return -1;
} else {
__gl_timelne_del_nocontents(timeline_d);
}
ad->tlinfo->view = view;
elm_object_part_content_set(ad->tlinfo->layout, "elm.swallow", view);
+
+ if (ad->tlinfo->nocontents) {
+ if (ad->tlinfo->view_m != GL_TL_VIEW_NORMAL)
+ __gl_timeline_change_mode(data, GL_TL_VIEW_NORMAL);
+ }
/* Update buttons state */
__gl_timeline_reset_btns(data);
/* Update naviframe item title */
ad->albuminfo.view = noc;
evas_object_show(noc);
- elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_FALSE, EINA_FALSE);
+ elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_TRUE, EINA_TRUE);
Evas_Object *old_view = NULL;
old_view = elm_object_part_content_unset(ad->ctrlinfo.ctrlbar_view_ly,
"elm.swallow.view");
}
evas_object_del(ad->albuminfo.view);
}
+ _gl_ui_change_navi_title(ad->ctrlinfo.nf_it, GL_STR_ID_ALBUM, true);
+ elm_object_signal_emit(ad->ctrlinfo.ctrlbar_view_ly, "elm,selectall,state,default", "elm");
+ Evas_Object * btn = elm_object_item_part_content_unset(ad->ctrlinfo.nf_it, GL_NAVIFRAME_TITLE_LEFT_BTN);
+ evas_object_del(btn);
+ btn = elm_object_item_part_content_unset(ad->ctrlinfo.nf_it, GL_NAVIFRAME_TITLE_RIGHT_BTN);
+ evas_object_del(btn);
Evas_Object *noc = _gl_nocontents_create(ad->ctrlinfo.ctrlbar_view_ly);
ad->albuminfo.nocontents = noc;
ad->albuminfo.view = noc;
evas_object_show(noc);
- elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_FALSE, EINA_FALSE);
+ elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_TRUE, EINA_TRUE);
Evas_Object *old_view = NULL;
old_view = elm_object_part_content_unset(ad->ctrlinfo.ctrlbar_view_ly,
"elm.swallow.view");
Evas_Object *noc = _gl_nocontents_create(ad->ctrlinfo.ctrlbar_view_ly);
evas_object_show(noc);
ad->albuminfo.nocontents = noc;
- elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_FALSE, EINA_FALSE);
+ elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_TRUE, EINA_TRUE);
return noc;
} else {
Evas_Object *noc = _gl_nocontents_create(ad->ctrlinfo.ctrlbar_view_ly);
evas_object_show(noc);
ad->albuminfo.nocontents = noc;
- elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_FALSE, EINA_FALSE);
+ elm_naviframe_item_title_enabled_set(ad->ctrlinfo.nf_it, EINA_TRUE, EINA_TRUE);
return noc;
} else {
return 0;
}
-int _gl_thumbs_sel_pop_view(void *data, bool b_pop)
-{
- GL_CHECK_VAL(data, -1);
- gl_appdata *ad = (gl_appdata *)data;
-
- if (b_pop) {
- /* Pop naviframe item*/
- elm_naviframe_item_pop(ad->maininfo.naviframe);
- }
- /* Reset view mode */
- gl_set_view_mode(data, GL_VIEW_ALBUMS_SELECT);
- /* Update view */
- _gl_albums_sel_update_view(data);
- return 0;
-}
-
int _gl_thumbs_sel_update_lang(void *data)
{
GL_CHECK_VAL(data, -1);