X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fdjvu%2Fdjvu-document.c;h=daf09a5c5b0b2482408508e8cce155ba7c453e92;hb=b1afb3adfd0cbad343abe98986e7aef74b280b89;hp=3eafbfe67d64fb379acb7e47e00d7c9573985663;hpb=09d18721e3015b9e4cc448f1f3620da54784ebba;p=evince.git diff --git a/backend/djvu/djvu-document.c b/backend/djvu/djvu-document.c index 3eafbfe6..daf09a5c 100644 --- a/backend/djvu/djvu-document.c +++ b/backend/djvu/djvu-document.c @@ -34,7 +34,7 @@ #include #include -#include +#include #include #define SCALE_FACTOR 0.2 @@ -75,7 +75,7 @@ ev_djvu_error_quark (void) { static GQuark q = 0; if (q == 0) - q = g_quark_from_static_string ("ev-djvu-quark"); + q = g_quark_from_string ("ev-djvu-quark"); return q; } @@ -168,6 +168,10 @@ djvu_document_load (EvDocument *document, if (!doc) { g_free (filename); + g_set_error_literal (error, + EV_DOCUMENT_ERROR, + EV_DOCUMENT_ERROR_INVALID, + _("DJVU document has incorrect format")); return FALSE; } @@ -241,11 +245,11 @@ djvu_document_load (EvDocument *document, g_free (filename); if (missing_files) { - g_set_error (error, - G_FILE_ERROR, - G_FILE_ERROR_EXIST, - _("The document is composed by several files. " - "One or more of such files cannot be accessed.")); + g_set_error_literal (error, + G_FILE_ERROR, + G_FILE_ERROR_EXIST, + _("The document is composed of several files. " + "One or more of such files cannot be accessed.")); return FALSE; }