[150983] users/devans/GNOME-3/stable/dports/gnome/gtk3
devans at macports.org
devans at macports.org
Thu Aug 4 12:23:25 PDT 2016
Revision: 150983
https://trac.macports.org/changeset/150983
Author: devans at macports.org
Date: 2016-08-04 12:23:25 -0700 (Thu, 04 Aug 2016)
Log Message:
-----------
GNOME-3/stable: gtk3, update to version 3.20.8, cups patch now included upstream, add proposed patch from gnome bg765649 for testing (#51296).
Modified Paths:
--------------
users/devans/GNOME-3/stable/dports/gnome/gtk3/Portfile
Added Paths:
-----------
users/devans/GNOME-3/stable/dports/gnome/gtk3/files/0001-iconhelper-check-if-surface-was-invalidated.patch
Removed Paths:
-------------
users/devans/GNOME-3/stable/dports/gnome/gtk3/files/cups.patch
Modified: users/devans/GNOME-3/stable/dports/gnome/gtk3/Portfile
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gtk3/Portfile 2016-08-04 18:30:57 UTC (rev 150982)
+++ users/devans/GNOME-3/stable/dports/gnome/gtk3/Portfile 2016-08-04 19:23:25 UTC (rev 150983)
@@ -11,7 +11,7 @@
name gtk3
set real_name gtk+
epoch 1
-version 3.20.6
+version 3.20.8
set branch [join [lrange [split ${version} .] 0 1] .]
categories gnome x11
license LGPL-2.1+
@@ -31,8 +31,8 @@
master_sites gnome:sources/gtk+/${branch}/
-checksums rmd160 5ae385f38ec164ffa72b0f9dec4dc30d50c04feb \
- sha256 3f8016563a96b1cfef4ac9e795647f6316deb2978ff939b19e4e4f8f936fa4b2
+checksums rmd160 2aa4280d5827ba42e6490842b3da5848e38dd776 \
+ sha256 9841bd9b4d23c045c474b10fdde9da958af904b63783701e796391d55d4396f3
minimum_xcodeversions {9 3.1}
@@ -54,7 +54,8 @@
lib/libpango-1.0.dylib \
lib/libtiff.dylib
-patchfiles nawk.patch cups.patch
+patchfiles nawk.patch \
+ 0001-iconhelper-check-if-surface-was-invalidated.patch
# gtk3 +quartz uses instancetype which is not available
# before approximately Xcode 4.6 (#49391)
Added: users/devans/GNOME-3/stable/dports/gnome/gtk3/files/0001-iconhelper-check-if-surface-was-invalidated.patch
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gtk3/files/0001-iconhelper-check-if-surface-was-invalidated.patch (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gtk3/files/0001-iconhelper-check-if-surface-was-invalidated.patch 2016-08-04 19:23:25 UTC (rev 150983)
@@ -0,0 +1,41 @@
+From a4037730e68cfc37288badc64f4ddaf6c1fa51e8 Mon Sep 17 00:00:00 2001
+From: Christian Hergert <chergert at redhat.com>
+Date: Wed, 27 Apr 2016 16:51:25 -0700
+Subject: [PATCH] iconhelper: check if surface was invalidated
+
+Fetching the style may cause the surface to be invalidated.
+
+We don't want to fetch the style unless we already have a surface,
+so just do a second surface check after fetching the style.
+---
+ gtk/gtkiconhelper.c | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
+index b8737e7..a80418d 100644
+--- gtk/gtkiconhelper.c
++++ gtk/gtkiconhelper.c
+@@ -896,10 +896,16 @@ _gtk_icon_helper_draw (GtkIconHelper *self,
+
+ if (self->priv->rendered_surface != NULL)
+ {
+- gtk_css_style_render_icon_surface (gtk_css_node_get_style (gtk_css_gadget_get_node (GTK_CSS_GADGET (self))),
+- cr,
+- self->priv->rendered_surface,
+- x, y);
++ GtkCssStyle *style;
++
++ style = gtk_css_node_get_style (gtk_css_gadget_get_node (GTK_CSS_GADGET (self)));
++
++ /* Fetching the style might cause rendered_surface to be invalidated */
++ if (self->priv->rendered_surface != NULL)
++ gtk_css_style_render_icon_surface (style,
++ cr,
++ self->priv->rendered_surface,
++ x, y);
+ }
+ }
+
+--
+2.3.2 (Apple Git-55)
+
Deleted: users/devans/GNOME-3/stable/dports/gnome/gtk3/files/cups.patch
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/gtk3/files/cups.patch 2016-08-04 18:30:57 UTC (rev 150982)
+++ users/devans/GNOME-3/stable/dports/gnome/gtk3/files/cups.patch 2016-08-04 19:23:25 UTC (rev 150983)
@@ -1,12 +0,0 @@
---- configure.orig 2016-05-10 20:25:04.000000000 -0700
-+++ configure 2016-05-10 20:25:37.000000000 -0700
-@@ -25784,7 +25784,7 @@ fi
- CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $1}'`
- CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $2}'`
-
-- if test $CUPS_API_MAJOR -gt 1 -o \
-+ if test $CUPS_API_MAJOR -lt 1 -o \
- $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -lt 2; then
- as_fn_error $? "CUPS >= 1.2 not found" "$LINENO" 5
- fi
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160804/e9dfb6fd/attachment.html>
More information about the macports-changes
mailing list