GNOME Bugzilla – Bug 738262
The find button crashes Evince in those backends that don't implement the find option
Last modified: 2018-02-23 16:18:55 UTC
The comics and tiff backends don't implement the find function, however, the find button is enabled in the toolbar for those type of files and it crashes Evince if pressed.
Created attachment 288175 [details] [review] Proposed patch I submit a patch for review :-)
Review of attachment 288175 [details] [review]: ::: shell/ev-window.c @@ +457,1 @@ } I don't think this is the right approach. In this part of the code, it is only getting the capabilities of the document. The issue seems to be later, ~503: ev_window_set_action_enabled (ev_window, "find", can_find && !recent_view_mode); Check if can_find is being set correctly, otherwise the error is in the condition (possibly introduced when we added the recent view mode).
I think can_find is set correctly. I guess the error must be in the gaction definition, but this concept is new to me and I need time to learn. I'll be offline till monday, so I'm affraid I won't be able to fix this for the 3.14.1 release :/
Review of attachment 288175 [details] [review]: ::: shell/ev-window.c @@ +457,1 @@ } The problem is that the find action is the one used by the accelerator, the toggle button one is toggle-find, and we are not enabling/disabling that action here.
Fixed in git master now.
Good catch ! :-)
*** Bug 739473 has been marked as a duplicate of this bug. ***
It looks like this problem still persists for DVI?
*** Bug 771247 has been marked as a duplicate of this bug. ***
*** Bug 741759 has been marked as a duplicate of this bug. ***