Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto/epdf
Dir : e17/proto/epdf/src/lib
Modified Files:
ewl_pdf.c
Log Message:
fix tests and doc
===================================================================
RCS file: /cvs/e/e17/proto/epdf/src/lib/ewl_pdf.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_pdf.c 25 May 2008 13:49:17 -0000 1.20
+++ ewl_pdf.c 13 Jul 2008 09:27:03 -0000 1.21
@@ -122,13 +122,13 @@
w = EWL_WIDGET(pdf);
+ if (!filename || (filename[0] == '\0'))
+ DRETURN_INT(FALSE, DLEVEL_STABLE);
+
if (pdf->filename != filename) {
IF_FREE(pdf->filename);
}
- if (!filename || (filename[0] == '\0'))
- DRETURN_INT(FALSE, DLEVEL_STABLE);
-
if (pdf->pdf_index) {
epdf_index_delete(pdf->pdf_index);
pdf->pdf_index = NULL;
@@ -323,7 +323,7 @@
* @return Returns no value.
* @brief Set the scale of the document
*
- * Sets the horizontal scale @p hscale ans the vertical scale @p vscale
+ * Sets the horizontal scale @p hscale and the vertical scale @p vscale
* of the document @p pdf
*/
void
@@ -355,7 +355,7 @@
* @param hscale: horizontal scale of the current page
* @param vscale: vertical scale of the current page
* @return Returns no value.
- * @brief get the horizontal scale @p hscale ans the vertical scale
+ * @brief get the horizontal scale @p hscale and the vertical scale
* @p vscale of the document @p pdf. If @p pdf is NULL, their values are 1.0
*/
void
@@ -726,6 +726,8 @@
pdf = EWL_PDF(w);
emb = ewl_embed_widget_find(w);
+ if (!emb)
+ DRETURN(DLEVEL_STABLE);
if (!pdf->image)
pdf->image = ewl_embed_object_request(emb, "pdf");
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs