Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/dvi
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-02-05 13:08:29 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-02-05 13:08:29 (GMT)
commitef262303183a13c3d166dd4873e74a78b38cee28 (patch)
tree13937b704a571ecae9abe61a95c603499c2e9e84 /backend/dvi
parentae999b6c8ddef40b372d3387b4fe0932bea89687 (diff)
Use g_set_error_literal now that we depend on glib 2.18.
* backend/comics/comics-document.c: (comics_document_load): * backend/djvu/djvu-document.c: (djvu_document_load): * backend/dvi/dvi-document.c: (dvi_document_load): * backend/impress/impress-document.c: (impress_document_load): * backend/pdf/ev-poppler.cc: * libdocument/ev-document-factory.c: (get_document_from_uri), (ev_document_factory_get_document): * shell/ev-print-operation.c: (ev_print_operation_export_print_dialog_response_cb): Use g_set_error_literal now that we depend on glib 2.18. svn path=/trunk/; revision=3419
Diffstat (limited to 'backend/dvi')
-rw-r--r--backend/dvi/dvi-document.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c
index 1d6ca08..e2df875 100644
--- a/backend/dvi/dvi-document.c
+++ b/backend/dvi/dvi-document.c
@@ -90,10 +90,10 @@ dvi_document_load (EvDocument *document,
filename = g_filename_from_uri (uri, NULL, error);
if (!filename) {
- g_set_error (error,
- EV_DOCUMENT_ERROR,
- EV_DOCUMENT_ERROR_INVALID,
- _("File not available"));
+ g_set_error_literal (error,
+ EV_DOCUMENT_ERROR,
+ EV_DOCUMENT_ERROR_INVALID,
+ _("File not available"));
return FALSE;
}
@@ -106,10 +106,10 @@ dvi_document_load (EvDocument *document,
g_free (filename);
if (!dvi_document->context) {
- g_set_error (error,
- EV_DOCUMENT_ERROR,
- EV_DOCUMENT_ERROR_INVALID,
- _("DVI document has incorrect format"));
+ g_set_error_literal (error,
+ EV_DOCUMENT_ERROR,
+ EV_DOCUMENT_ERROR_INVALID,
+ _("DVI document has incorrect format"));
return FALSE;
}