Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/dialogs Modified Files: etk_progress_dialog.c Log Message: * API rationalization * Misc. catches * Delete event now supports progress bar =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/dialogs/etk_progress_dialog.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- etk_progress_dialog.c 6 Mar 2006 08:16:00 -0000 1.2 +++ etk_progress_dialog.c 14 Mar 2006 13:05:42 -0000 1.3 @@ -33,11 +33,19 @@ char buffer[PATH_MAX]; - snprintf(buffer, PATH_MAX, "%s://%s/%s", file_from->uri_base, file_from->path, file_from->filename); - etk_label_set(ETK_LABEL(dialog->file_from), buffer); - - snprintf(buffer, PATH_MAX, "%s://%s/%s", file_to->uri_base, file_to->path, file_to->filename); - etk_label_set(ETK_LABEL(dialog->file_to), buffer); + if (file_from) { + snprintf(buffer, PATH_MAX, "%s://%s/%s", file_from->uri_base, file_from->path, file_from->filename); + etk_label_set(ETK_LABEL(dialog->file_from), buffer); + } else { + etk_label_set(ETK_LABEL(dialog->file_from), ""); + } + + if (file_to) { + snprintf(buffer, PATH_MAX, "%s://%s/%s", file_to->uri_base, file_to->path, file_to->filename); + etk_label_set(ETK_LABEL(dialog->file_to), buffer); + } else { + etk_label_set(ETK_LABEL(dialog->file_to), ""); + } } ------------------------------------------------------- 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