[arch-commits] Commit in gnome-games/trunk (2 files)

Balló György bgyorgy at archlinux.org
Thu Mar 28 21:48:56 UTC 2019


    Date: Thursday, March 28, 2019 @ 21:48:56
  Author: bgyorgy
Revision: 445644

upgpkg: gnome-games 3.32.0-1

Update to new version

Added:
  gnome-games/trunk/Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch
Modified:
  gnome-games/trunk/PKGBUILD

-------------------------------------------------------------+
 PKGBUILD                                                    |   15 ++-
 Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch |   43 ++++++++++
 2 files changed, 54 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-28 21:05:11 UTC (rev 445643)
+++ PKGBUILD	2019-03-28 21:48:56 UTC (rev 445644)
@@ -2,17 +2,24 @@
 # Contributor: Tom Richards <tom at tomrichards.net>
 
 pkgname=gnome-games
-pkgver=3.30.2
+pkgver=3.32.0
 pkgrel=1
 pkgdesc='Simple game launcher for GNOME'
 arch=('x86_64')
 license=('GPL3')
 url='https://wiki.gnome.org/Apps/Games'
-depends=('grilo' 'libmanette' 'retro-gtk' 'tracker')
+depends=('grilo' 'libhandy' 'libmanette' 'retro-gtk' 'tracker')
 makedepends=('meson' 'vala')
-source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
-sha256sums=('5607c4071d3b07809ec1a88deb52bb289c29b2f5fb91374e244ebe7f8dee31a1')
+source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
+        "Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch")
+sha256sums=('be500607e5695b37d6c7a36a70c71ea886be1428302ffe3364d9d1ed6432b863'
+            '4a9bc1b9247470e509e489eb51f8f1600ee581281779878a5df9fbbc2b7e73aa')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch
+}
+
 build() {
   arch-meson $pkgname-$pkgver build
   ninja -C build

Added: Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch
===================================================================
--- Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch	                        (rev 0)
+++ Revert-gamepad-view-Stop-accessing-Rsvg.Handle-fields.patch	2019-03-28 21:48:56 UTC (rev 445644)
@@ -0,0 +1,43 @@
+From: Jeremy Bicha <jbicha at debian.org>
+Date: Sun, 17 Mar 2019 08:46:34 -0400
+Subject: Revert "gamepad-view: Stop accessing Rsvg.Handle fields"
+
+This reverts commit 3c33d1aa3b2e177ed055e6865b3fc6229cf911d6.
+---
+ src/ui/gamepad-view.vala | 16 ++++------------
+ 1 file changed, 4 insertions(+), 12 deletions(-)
+
+diff --git a/src/ui/gamepad-view.vala b/src/ui/gamepad-view.vala
+index 8649413..f917f78 100644
+--- a/src/ui/gamepad-view.vala
++++ b/src/ui/gamepad-view.vala
+@@ -26,11 +26,7 @@ private class Games.GamepadView : Gtk.DrawingArea {
+ 				critical ("Could not set up gamepad view: %s", e.message);
+ 			}
+ 
+-			Rsvg.Rectangle rect = {};
+-			if (!handle.get_geometry_sub (null, out rect, null))
+-				assert_not_reached ();
+-
+-			set_size_request ((int) rect.width, (int) rect.height);
++			set_size_request (handle.width, handle.height);
+ 			input_highlights = new bool[value.input_paths.length];
+ 
+ 			reset ();
+@@ -105,13 +101,9 @@ private class Games.GamepadView : Gtk.DrawingArea {
+ 		double w = get_allocated_width ();
+ 		double h = get_allocated_height ();
+ 
+-		Rsvg.Rectangle rect = {};
+-		if (!handle.get_geometry_sub (null, out rect, null))
+-			assert_not_reached ();
+-
+-		scale = double.min (h / rect.height, w / rect.width);
++		scale = double.min (h / handle.height, w / handle.width);
+ 
+-		x = (w - rect.width * scale) / 2;
+-		y = (h - rect.height * scale) / 2;
++		x = (w - handle.width * scale) / 2;
++		y = (h - handle.height * scale) / 2;
+ 	}
+ }


More information about the arch-commits mailing list