Add patch which prevents focus stealing while reloading a document.
Bump patch level. While here, add ajacoutot@ and jasper@ as maintainers, requested by ajacoutot@. ok ajacoutot@
This commit is contained in:
parent
d544f73773
commit
9f8c6bffad
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.22 2009/04/06 10:09:06 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.23 2009/04/06 16:15:13 stsp Exp $
|
||||||
|
|
||||||
SHARED_ONLY= Yes
|
SHARED_ONLY= Yes
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ GNOME_VERSION= 2.24.2
|
|||||||
|
|
||||||
CATEGORIES= graphics print
|
CATEGORIES= graphics print
|
||||||
|
|
||||||
PKGNAME-main= ${DISTNAME}p5
|
PKGNAME-main= ${DISTNAME}p6
|
||||||
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
|
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
|
||||||
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
|
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
|
||||||
|
|
||||||
@ -19,6 +19,9 @@ SHARED_LIBS= evbackend 0.0 # .0.0
|
|||||||
|
|
||||||
HOMEPAGE= http://www.gnome.org/projects/evince/
|
HOMEPAGE= http://www.gnome.org/projects/evince/
|
||||||
|
|
||||||
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
|
||||||
|
Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||||
|
|
||||||
# GPLv2
|
# GPLv2
|
||||||
PERMIT_PACKAGE_FTP= Yes
|
PERMIT_PACKAGE_FTP= Yes
|
||||||
PERMIT_PACKAGE_CDROM= Yes
|
PERMIT_PACKAGE_CDROM= Yes
|
||||||
|
23
graphics/evince/patches/patch-shell_ev-window_c
Normal file
23
graphics/evince/patches/patch-shell_ev-window_c
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
$OpenBSD: patch-shell_ev-window_c,v 1.1 2009/04/06 16:15:13 stsp 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 Apr 6 16:34:01 2009
|
||||||
|
+++ shell/ev-window.c Mon Apr 6 16:34:10 2009
|
||||||
|
@@ -926,6 +926,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));
|
Loading…
Reference in New Issue
Block a user