diff --git a/0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch b/0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch new file mode 100644 index 0000000..3fa5908 --- /dev/null +++ b/0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch @@ -0,0 +1,86 @@ +From 8e20f99f5d73175112b37203ba127519db90aff0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Tue, 10 Jan 2017 15:10:44 +0000 +Subject: [PATCH] Resolves: deb#762530 rhbz#1061177 add man pages + +for evince-previewer and evince-thumbnailer +--- + data/Makefile.am | 2 +- + data/evince-previewer.1 | 24 ++++++++++++++++++++++++ + data/evince-thumbnailer.1 | 20 ++++++++++++++++++++ + 3 files changed, 45 insertions(+), 1 deletion(-) + create mode 100644 data/evince-previewer.1 + create mode 100644 data/evince-thumbnailer.1 + +diff --git a/data/Makefile.am b/data/Makefile.am +index 44fcf33..a45a3cb 100644 +--- a/data/Makefile.am ++++ b/data/Makefile.am +@@ -7,7 +7,7 @@ install-data-local: update-icon-cache + # man file + # + +-man_MANS=evince.1 ++man_MANS=evince.1 evince-previewer.1 evince-thumbnailer.1 + + # + # UI descriptions +diff --git a/data/evince-previewer.1 b/data/evince-previewer.1 +new file mode 100644 +index 0000000..1841509 +--- /dev/null ++++ b/data/evince-previewer.1 +@@ -0,0 +1,24 @@ ++.TH evince\-previewer 1 2015\-07\-28 ++.SH NAME ++evince\-previewer \- show a printing preview of PostScript and PDF documents ++.SH SYNOPSIS ++\fBevince\-previewer\fR [options] \fBinput\fR ++.SH DESCRIPTION ++evince\-previewer is a GNOME program to ++show a printing preview from PostScript (PS), Portable Document Format ++(PDF), DjVu and DVI files. ++.SH OPTIONS ++evince\-previewer obeys all normal GNOME and GTK+ command line options. ++The application options are ++.TP ++\fB\-u, \-\-unlink\-tempfile\fR ++Delete the temporary file ++.TP ++\fB\-p, \-\-print-settings=FILE\fR ++Print settings file ++.SH "SEE ALSO" ++\fBevince\fR(1), ++\fBgnome\-options\fR(7), ++\fBgtk\-options\fR(7). ++.PP ++https://wiki.gnome.org/Apps/Evince +diff --git a/data/evince-thumbnailer.1 b/data/evince-thumbnailer.1 +new file mode 100644 +index 0000000..25ddfec +--- /dev/null ++++ b/data/evince-thumbnailer.1 +@@ -0,0 +1,20 @@ ++.TH evince\-thumbnailer 1 2007\-01\-15 ++.SH NAME ++evince\-thumbnailer \- create png thumbnails from PostScript and PDF documents ++.SH SYNOPSIS ++\fBevince\-thumbnailer\fR [\-s \fBsize\fR] \fBinput\fR \fBoutput\fR ++.SH DESCRIPTION ++evince\-thumbnailer is a GNOME program to ++create thumbnails from PostScript (PS), Portable Document Format ++(PDF), DjVu and DVI files. ++.SH OPTIONS ++evince obeys all normal GNOME and GTK+ ++command line options. The only option \-s \fIsize ++\fRmakes it possible to choose the vertical size ++of the created thumbnail. ++.SH "SEE ALSO" ++\fBevince\fR(1), ++\fBgnome\-options\fR(7), ++\fBgtk\-options\fR(7). ++.PP ++http://www.gnome.org/projects/evince/ +-- +2.9.3 + diff --git a/evince-3.21.4-NPNVToolKit.patch b/evince-3.21.4-NPNVToolKit.patch new file mode 100644 index 0000000..7a8b5a5 --- /dev/null +++ b/evince-3.21.4-NPNVToolKit.patch @@ -0,0 +1,76 @@ +--- evince-3.21.92/browser-plugin/EvBrowserPluginMain.cpp ++++ evince-3.21.92/browser-plugin/EvBrowserPluginMain.cpp +@@ -38,11 +38,40 @@ static EvBrowserPlugin *pluginForInstanc + return static_cast(instance->pdata); + } + ++static gboolean gtkToolkitIsCompatible(NPP instance) ++{ ++ NPNToolkitType toolkit_type = NPNVGtk12; ++ NPError error; ++ ++ error = browser->getvalue(instance, NPNVToolkit, &toolkit_type); ++ ++ if (error == NPERR_NO_ERROR && ++ (toolkit_type == NPNVGtk12 || ++ toolkit_type == NPNVGtk2)) ++ return FALSE; ++ else ++ return TRUE; ++} ++ + NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *savedData) + { + if (!instance) + return NPERR_INVALID_INSTANCE_ERROR; + ++ if (!gtkToolkitIsCompatible(instance)) ++ return NPERR_GENERIC_ERROR; ++ ++ GBytes *resourceData = g_resources_lookup_data("/org/gnome/evince/browser/ui/evince-browser.css", G_RESOURCE_LOOKUP_FLAGS_NONE, nullptr); ++ if (resourceData) { ++ GtkCssProvider *cssProvider = gtk_css_provider_new(); ++ ++ gtk_css_provider_load_from_data(cssProvider, static_cast(g_bytes_get_data(resourceData, nullptr)), g_bytes_get_size(resourceData), nullptr); ++ g_bytes_unref(resourceData); ++ ++ gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(cssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); ++ g_object_unref(cssProvider); ++ } ++ + return EvBrowserPlugin::create(instance)->initialize(pluginType, mode, argc, argn, argv, savedData); + } + +@@ -197,6 +226,11 @@ NPError NP_Initialize(NPNetscapeFuncs *b + if ((browserFuncs->version >> 8) > NP_VERSION_MAJOR) + return NPERR_INCOMPATIBLE_VERSION_ERROR; + ++ browser = browserFuncs; ++ ++ if (!gtkToolkitIsCompatible(NULL)) ++ return NPERR_GENERIC_ERROR; ++ + if (!ev_init()) + return NPERR_GENERIC_ERROR; + +@@ -207,20 +241,8 @@ NPError NP_Initialize(NPNetscapeFuncs *b + return NPERR_GENERIC_ERROR; + #endif + +- browser = browserFuncs; + initializePluginFuncs(pluginFuncs); + +- GBytes *resourceData = g_resources_lookup_data("/org/gnome/evince/browser/ui/evince-browser.css", G_RESOURCE_LOOKUP_FLAGS_NONE, nullptr); +- if (resourceData) { +- GtkCssProvider *cssProvider = gtk_css_provider_new(); +- +- gtk_css_provider_load_from_data(cssProvider, static_cast(g_bytes_get_data(resourceData, nullptr)), g_bytes_get_size(resourceData), nullptr); +- g_bytes_unref(resourceData); +- +- gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(cssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +- g_object_unref(cssProvider); +- } +- + return NPERR_NO_ERROR; + } + diff --git a/evince-3.30.1.tar.xz b/evince-3.30.1.tar.xz new file mode 100644 index 0000000..d904100 Binary files /dev/null and b/evince-3.30.1.tar.xz differ