Enlightenment CVS committal Author : lok Project : e17 Module : proto
Dir : e17/proto/exhibit/src/bin Modified Files: exhibit_tab.c Log Message: Little fix on removed tabs. =================================================================== RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_tab.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- exhibit_tab.c 18 Aug 2006 10:36:41 -0000 1.26 +++ exhibit_tab.c 19 Aug 2006 13:04:56 -0000 1.27 @@ -117,11 +117,13 @@ D(("Delete tab %d\n", e->cur_tab->num)); D(("Remove from list\n")); -// e->tabs = evas_list_remove(e->tabs, e->cur_tab); + e->tabs = evas_list_remove(e->tabs, e->cur_tab); D(("Free\n")); etk_notebook_page_remove(ETK_NOTEBOOK(e->notebook), e->cur_tab->num); - // E_FREE(e->cur_tab); + /* Set the cur_tab on the new one */ + e->cur_tab = evas_list_nth(e->tabs, etk_notebook_current_page_get(ETK_NOTEBOOK(e->notebook))); +// E_FREE(e->cur_tab); } void @@ -428,7 +430,7 @@ etk_tree_clear(ETK_TREE(e->cur_tab->itree)); etk_tree_clear(ETK_TREE(e->cur_tab->dtree)); _ex_main_populate_files(e, NULL); - etk_notebook_page_tab_label_set(ETK_NOTEBOOK(e->notebook), e->cur_tab->num, _ex_file_get(e->cur_tab->cur_path)); + etk_notebook_page_tab_label_set(ETK_NOTEBOOK(e->notebook), etk_notebook_current_page_get(ETK_NOTEBOOK(e->notebook)), _ex_file_get(e->cur_tab->cur_path)); } static void ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs