openbsd-ports/graphics/evince/patches/patch-shell_ev-window_c
ajacoutot 2f1d59e5bc Major update to evince-2.28.0.
Add a nautilus-evince subpackage (evince plugiun for nautilus).
2009-10-13 11:00:39 +00:00

24 lines
865 B
Plaintext

$OpenBSD: patch-shell_ev-window_c,v 1.3 2009/10/13 11:00:39 ajacoutot Exp $
Taken from http://bugzilla.gnome.org/show_bug.cgi?id=571051
This prevents evince from stealing focus when reloading a document.
Evince reloads documents automatically when they are changed while
being displayed. Very annoying while editing LaTeX files and rebuilding
the corresponding PDF.
--- shell/ev-window.c.orig Mon Sep 21 15:12:27 2009
+++ shell/ev-window.c Mon Oct 12 14:21:56 2009
@@ -1015,6 +1015,11 @@ setup_size_from_metadata (EvWindow *window)
GValue x = { 0, };
GValue y = { 0, };
+ /* Don't try to change the window when reloading a document */
+ if (window->priv->in_reload) {
+ return;
+ }
+
if (ev_metadata_manager_get (uri, "window_maximized", &maximized, FALSE)) {
if (g_value_get_boolean (&maximized)) {
gtk_window_maximize (GTK_WINDOW (window));