Enlightenment CVS committal Author : codewarrior Project : e17 Module : proto
Dir : e17/proto/exhibit/src/bin Modified Files: exhibit.h exhibit_main.c exhibit_menus.c Log Message: - add current file being viewed in each tab to tab struct - call comment loading function when needed =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- exhibit.h 3 Mar 2006 00:44:37 -0000 1.13 +++ exhibit.h 13 Mar 2006 09:10:31 -0000 1.14 @@ -71,6 +71,7 @@ { char *dir; char cur_path[PATH_MAX]; + char cur_file[PATH_MAX]; int num; Etk_Bool fit_window; @@ -187,5 +188,6 @@ #include "exhibit_slideshow.h" #include "exhibit_favorites.h" #include "exhibit_options.h" +#include "exhibit_comment.h" #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit_main.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -3 -r1.43 -r1.44 --- exhibit_main.c 5 Mar 2006 01:02:50 -0000 1.43 +++ exhibit_main.c 13 Mar 2006 09:10:32 -0000 1.44 @@ -155,7 +155,9 @@ title = calloc(strlen(image) + strlen(WINDOW_TITLE) + 5, sizeof(char)); snprintf(title, strlen(image) + strlen(WINDOW_TITLE) + 5, "%s - %s", image, WINDOW_TITLE); etk_window_title_set(ETK_WINDOW(e->win), title); - + + snprintf(e->cur_tab->cur_file, sizeof(e->cur_tab->cur_file), "%s", image); + if(_ex_file_is_ebg(image)) { /* can we do this without the size request? it doesnt look good */ @@ -183,7 +185,9 @@ vs = etk_scrolled_view_vscrollbar_get(ETK_SCROLLED_VIEW(e->cur_tab->scrolled_view)); etk_range_value_set(hs, (double)w/2); - etk_range_value_set(vs, (double)h/2); + etk_range_value_set(vs, (double)h/2); + + _ex_comment_load(e); } void =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/exhibit/src/bin/exhibit_menus.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- exhibit_menus.c 5 Mar 2006 01:02:50 -0000 1.17 +++ exhibit_menus.c 13 Mar 2006 09:10:32 -0000 1.18 @@ -332,7 +332,10 @@ etk_tree_row_fields_get(r, etk_tree_nth_col_get(ETK_TREE(e->cur_tab->itree), 0), NULL, &icol_string, etk_tree_nth_col_get(ETK_TREE(e->cur_tab->itree), 1),NULL); if(!e->comment.visible) - _ex_comment_show(e); + { + _ex_comment_show(e); + _ex_comment_load(e); + } else _ex_comment_hide(e); } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs