From 3a013d3b19c5a81372560e735cf6f9f5c3ebdd37 Mon Sep 17 00:00:00 2001 From: rootavish Date: Sat, 9 Aug 2014 20:48:25 +0530 Subject: GTK3, Webkit2 support for epub I added the code to make it possible to build Atril with GTK3 and webkit2. Everything runs fine with both GTK3 and GTK2. The find module for epub was also tested and changed. Now I shall first attempt to fix some Glib errors, and the problem of the temporary directory not getting deleted, that arose when I stabilized the thumbnails. --- backend/epub/epub-document.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/epub/epub-document.c') diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c index 3a574151..d0dce118 100644 --- a/backend/epub/epub-document.c +++ b/backend/epub/epub-document.c @@ -1198,6 +1198,7 @@ epub_document_get_info(EvDocument *document) EV_DOCUMENT_INFO_LAYOUT | EV_DOCUMENT_INFO_CREATOR | EV_DOCUMENT_INFO_LINEARIZED | + EV_DOCUMENT_INFO_PERMISSIONS | EV_DOCUMENT_INFO_N_PAGES ; infofile = g_filename_from_uri(uri,NULL,&error); @@ -1242,7 +1243,9 @@ epub_document_get_info(EvDocument *document) /* number of pages */ epubinfo->n_pages = epub_document_get_n_pages(document); - + + /*Copying*/ + epubinfo->permissions = EV_DOCUMENT_PERMISSIONS_OK_TO_COPY; /*TODO : Add a function to get date*/ g_free(uri); g_string_free(containerpath,TRUE); -- cgit v1.2.1