diff options
author | NP-Hardass <NP-Hardass@gentoo.org> | 2016-09-05 01:30:24 -0400 |
---|---|---|
committer | NP-Hardass <NP-Hardass@gentoo.org> | 2016-09-05 01:30:24 -0400 |
commit | ce4712374d3f421e99a3bdbb4486b770e2fa1f99 (patch) | |
tree | 3d1cabb8a25d788aec37b4f852430ced995d23ce /media-gfx/eom | |
parent | media-gfx/eom: Version bump to 1.14.1 (diff) | |
download | gentoo-mate-ce4712374d3f421e99a3bdbb4486b770e2fa1f99.tar.gz gentoo-mate-ce4712374d3f421e99a3bdbb4486b770e2fa1f99.tar.bz2 gentoo-mate-ce4712374d3f421e99a3bdbb4486b770e2fa1f99.zip |
media-gfx/eom: fix svg support in gtk+3
Package-Manager: portage-2.3.0
Diffstat (limited to 'media-gfx/eom')
-rw-r--r-- | media-gfx/eom/eom-1.12.2-r3.ebuild (renamed from media-gfx/eom/eom-1.12.2-r2.ebuild) | 2 | ||||
-rw-r--r-- | media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch | 33 |
2 files changed, 35 insertions, 0 deletions
diff --git a/media-gfx/eom/eom-1.12.2-r2.ebuild b/media-gfx/eom/eom-1.12.2-r3.ebuild index af12c2f..13d7c1f 100644 --- a/media-gfx/eom/eom-1.12.2-r2.ebuild +++ b/media-gfx/eom/eom-1.12.2-r3.ebuild @@ -62,6 +62,8 @@ DEPEND="${RDEPEND} sys-devel/gettext:* virtual/pkgconfig:*" +PATCHES=( "${FILESDIR}/${P}-gtk3-svg.patch" ) + pkg_setup() { use python && python-single-r1_pkg_setup } diff --git a/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch b/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch new file mode 100644 index 0000000..ccff8ae --- /dev/null +++ b/media-gfx/eom/files/eom-1.12.2-gtk3-svg.patch @@ -0,0 +1,33 @@ +From 038530ed2e9b844f75e2af24e44e0421ad1ccdc8 Mon Sep 17 00:00:00 2001 +From: monsta <monsta@inbox.ru> +Date: Wed, 24 Feb 2016 16:47:08 +0300 +Subject: [PATCH] fix svg rendering that's broken with GTK+3 + +from +https://git.gnome.org/browse/eog/commit/?id=a33950c14d7b8da8e1c6289709022affb910be2a +--- + src/eom-scroll-view.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c +index 6385f29..6d1b290 100644 +--- a/src/eom-scroll-view.c ++++ b/src/eom-scroll-view.c +@@ -1306,7 +1306,7 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) + + #ifdef HAVE_RSVG + if (eom_image_is_svg (view->priv->image)) { +- cairo_matrix_t matrix, translate, scale; ++ cairo_matrix_t matrix, translate, scale, original; + EomTransform *transform = eom_image_get_transform (priv->image); + cairo_matrix_init_identity (&matrix); + if (transform) { +@@ -1343,6 +1343,8 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) + cairo_matrix_init_translate (&translate, xofs, yofs); + cairo_matrix_multiply (&matrix, &matrix, &translate); + ++ cairo_get_matrix (cr, &original); ++ cairo_matrix_multiply (&matrix, &matrix, &original); + cairo_set_matrix (cr, &matrix); + + rsvg_handle_render_cairo (eom_image_get_svg (priv->image), cr); |