pacho       15/01/18 11:35:29

  Added:                evince-3.14.1-thumbnail-size.patch
                        evince-3.14.1-critical-warning.patch
                        evince-3.14.1-disable-toggle-find.patch
                        evince-3.14.1-incorrect-resolution.patch
                        evince-3.14.1-gnome-desktop.patch
                        evince-3.14.1-show-correct.patch
                        evince-3.14.1-scroll-search.patch
  Log:
  Apply multiple upstream patches, tests are no longer provided in 3.14 cycle 
as they were broken, drop old
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
A188FBD4)

Revision  Changes    Path
1.1                  app-text/evince/files/evince-3.14.1-thumbnail-size.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-thumbnail-size.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-thumbnail-size.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-thumbnail-size.patch
===================================================================
>From 1820802ff261d1ca05acd3c3153918c0fd1c686f Mon Sep 17 00:00:00 2001
From: Sebastian Keller <[email protected]>
Date: Sat, 29 Nov 2014 03:46:27 +0100
Subject: thumbnailer: Use correct maximum size for thumbnail images

https://bugzilla.gnome.org/show_bug.cgi?id=740877

diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 1649252..998447d 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -177,7 +177,7 @@ evince_thumbnail_pngenc_get (EvDocument *document, const 
char *thumbnail, int si
        
        ev_document_get_page_size (document, 0, &width, &height);
 
-       rc = ev_render_context_new (page, 0, size / width);
+       rc = ev_render_context_new (page, 0, size / MAX (height, width));
        pixbuf = ev_document_get_thumbnail (document, rc);
        g_object_unref (rc);
        g_object_unref (page);
-- 
cgit v0.10.1




1.1                  app-text/evince/files/evince-3.14.1-critical-warning.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-critical-warning.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-critical-warning.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-critical-warning.patch
===================================================================
>From 8875003da7f78a6fbba36fcc70d6ed2d372da7a6 Mon Sep 17 00:00:00 2001
From: Carlos Garcia Campos <[email protected]>
Date: Sun, 19 Oct 2014 16:01:38 +0200
Subject: Fix runtime critical warning when starting in fullscreen mode

The problem is that when running fullscreen mode we call
ev_window_update_links_model() to update the page action widget of the
fullscreen toolbar, but when running directly in fullscreen mode, this
can happen before the links have been loaded in the sidebar. Since
ev_window_update_links_model() is also called automatically when the
links model property changes, we can simply return early in
ev_window_update_links_model() when the model is NULL and it will be
called again with a valid model when the links job finishes.

https://bugzilla.gnome.org/show_bug.cgi?id=737864

diff --git a/shell/ev-window.c b/shell/ev-window.c
index 4de4732..e7f6a96 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4024,6 +4024,9 @@ ev_window_update_links_model (EvWindow *window)
                      "model", &model,
                      NULL);
 
+       if (!model)
+               return;
+
        page_selector = ev_toolbar_get_page_selector (EV_TOOLBAR 
(window->priv->toolbar));
        ev_page_action_widget_update_links_model (EV_PAGE_ACTION_WIDGET 
(page_selector), model);
        if (window->priv->fs_toolbar) {
-- 
cgit v0.10.1




1.1                  
app-text/evince/files/evince-3.14.1-disable-toggle-find.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-disable-toggle-find.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-disable-toggle-find.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-disable-toggle-find.patch
===================================================================
>From bfa59b72ed0c86192ca9b1f0882ca5119aa7fe12 Mon Sep 17 00:00:00 2001
From: Carlos Garcia Campos <[email protected]>
Date: Sun, 19 Oct 2014 15:24:18 +0200
Subject: Disable toggle-find action for documents not supporting find

https://bugzilla.gnome.org/show_bug.cgi?id=738262

diff --git a/shell/ev-window.c b/shell/ev-window.c
index c4f1f5d..4de4732 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -502,6 +502,8 @@ ev_window_update_actions_sensitivity (EvWindow *ev_window)
                                      can_get_text && !recent_view_mode);
        ev_window_set_action_enabled (ev_window, "find", can_find &&
                                      !recent_view_mode);
+       ev_window_set_action_enabled (ev_window, "toggle-find", can_find &&
+                                     !recent_view_mode);
        ev_window_set_action_enabled (ev_window, "rotate-left", has_pages &&
                                      !recent_view_mode);
        ev_window_set_action_enabled (ev_window, "rotate-right", has_pages &&
-- 
cgit v0.10.1




1.1                  
app-text/evince/files/evince-3.14.1-incorrect-resolution.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-incorrect-resolution.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-incorrect-resolution.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-incorrect-resolution.patch
===================================================================
>From 24a3d032728ab6cc530fab45d4eb5e232677c928 Mon Sep 17 00:00:00 2001
From: Gabor Kelemen <[email protected]>
Date: Fri, 10 Oct 2014 11:49:26 +0200
Subject: tiff: Handle incorrect 0 resolution found in TIFF files

https://bugzilla.gnome.org/show_bug.cgi?id=646414

diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c
index 80ac0f5..8f40934 100644
--- a/backend/tiff/tiff-document.c
+++ b/backend/tiff/tiff-document.c
@@ -172,9 +172,10 @@ tiff_document_get_resolution (TiffDocument *tiff_document,
                              gfloat       *x_res,
                              gfloat       *y_res)
 {
-       gfloat x = 72.0, y = 72.0;
+       gfloat x = 0.0;
+       gfloat y = 0.0;
        gushort unit;
-       
+
        if (TIFFGetField (tiff_document->tiff, TIFFTAG_XRESOLUTION, &x) &&
            TIFFGetField (tiff_document->tiff, TIFFTAG_YRESOLUTION, &y)) {
                if (TIFFGetFieldDefaulted (tiff_document->tiff, 
TIFFTAG_RESOLUTIONUNIT, &unit)) {
@@ -185,8 +186,9 @@ tiff_document_get_resolution (TiffDocument *tiff_document,
                }
        }
 
-       *x_res = x;
-       *y_res = y;
+       /* Handle 0 values: some software set TIFF resolution as `0 , 0` see 
bug #646414 */
+       *x_res = x > 0 ? x : 72.0;
+       *y_res = y > 0 ? y : 72.0;
 }
 
 static void
-- 
cgit v0.10.1




1.1                  app-text/evince/files/evince-3.14.1-gnome-desktop.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-gnome-desktop.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-gnome-desktop.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-gnome-desktop.patch
===================================================================
>From fa73b3b976a8aec415006d7fc99bab84d04650e4 Mon Sep 17 00:00:00 2001
From: Marek Kasik <[email protected]>
Date: Wed, 19 Nov 2014 10:53:29 +0100
Subject: Fix configuration with ligbnome-desktop

A typo caused fail of configuration with enabled
support for libgnome-desktop.

https://bugzilla.gnome.org/show_bug.cgi?id=733721

diff --git a/configure.ac b/configure.ac
index dd4bcab..0ae92b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -313,7 +313,7 @@ if test "$enable_gnome_desktop" != "no"; then
       PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0], 
has_libgnome_desktop=yes, has_libgnome_desktop=no)
    else
       PKG_CHECK_MODULES([LIBGNOME_DESKTOP], [gnome-desktop-3.0])
-      has_libgnome_desktop = yes
+      has_libgnome_desktop=yes
    fi
 
    if test x$has_libgnome_desktop = xyes; then
-- 
cgit v0.10.1




1.1                  app-text/evince/files/evince-3.14.1-show-correct.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-show-correct.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-show-correct.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-show-correct.patch
===================================================================
>From f2c908cf8a8f8d5d0fbed1bc0871c8bdb531f751 Mon Sep 17 00:00:00 2001
From: Marek Kasik <[email protected]>
Date: Tue, 18 Nov 2014 12:53:40 +0100
Subject: Show correct page when next search result requested

If there are more than 1 results on a page then requesting
next search result from the same page will not return you
to the page with the search results if you moved from the
page in the meantime (when you are not in continuous mode).
This applies also to previous results.

https://bugzilla.gnome.org/show_bug.cgi?id=730252

diff --git a/libview/ev-view.c b/libview/ev-view.c
index f3aa033..a9159cd 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -8250,6 +8250,8 @@ ev_view_find_next (EvView *view)
        if (view->find_result >= n_results) {
                view->find_result = 0;
                jump_to_find_page (view, EV_VIEW_FIND_NEXT, 1);
+       } else if (view->find_page != view->current_page) {
+               jump_to_find_page (view, EV_VIEW_FIND_NEXT, 0);
        }
 
        jump_to_find_result (view);
@@ -8264,6 +8266,8 @@ ev_view_find_previous (EvView *view)
        if (view->find_result < 0) {
                jump_to_find_page (view, EV_VIEW_FIND_PREV, -1);
                view->find_result = MAX (0, ev_view_find_get_n_results (view, 
view->find_page) - 1);
+       } else if (view->find_page != view->current_page) {
+               jump_to_find_page (view, EV_VIEW_FIND_PREV, 0);
        }
 
        jump_to_find_result (view);
-- 
cgit v0.10.1




1.1                  app-text/evince/files/evince-3.14.1-scroll-search.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-scroll-search.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/evince/files/evince-3.14.1-scroll-search.patch?rev=1.1&content-type=text/plain

Index: evince-3.14.1-scroll-search.patch
===================================================================
>From aa988afb009307c6b854b5da366d34e0ee2ea763 Mon Sep 17 00:00:00 2001
From: Marek Kasik <[email protected]>
Date: Mon, 19 May 2014 14:32:19 +0200
Subject: Scroll to the search result selected by user

Scroll to page on which is the search result selected by user
when not in continuous mode.

https://bugzilla.gnome.org/show_bug.cgi?id=730252

diff --git a/libview/ev-view.c b/libview/ev-view.c
index 5ed2d78..f3aa033 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -8158,6 +8158,9 @@ jump_to_find_page (EvView *view, EvViewFindDirection 
direction, gint shift)
                        break;
                }
        }
+
+       if (!view->continuous)
+               ev_document_model_set_page (view->model, view->find_page);
 }
 
 static void
@@ -8282,6 +8285,7 @@ ev_view_find_set_result (EvView *view, gint page, gint 
result)
 {
        view->find_page = page;
        view->find_result = result;
+       jump_to_find_page (view, EV_VIEW_FIND_NEXT, 0);
        jump_to_find_result (view);
        gtk_widget_queue_draw (GTK_WIDGET (view));
 }
-- 
cgit v0.10.1





Reply via email to