Hello community,

here is the log from the commit of package lutris for openSUSE:Factory checked 
in at 2020-03-03 10:19:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lutris (Old)
 and      /work/SRC/openSUSE:Factory/.lutris.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lutris"

Tue Mar  3 10:19:15 2020 rev:2 rq:781088 version:0.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/lutris/lutris.changes    2020-02-07 
15:53:39.963486325 +0100
+++ /work/SRC/openSUSE:Factory/.lutris.new.26092/lutris.changes 2020-03-03 
10:20:50.815222225 +0100
@@ -1,0 +2,5 @@
+Mon Mar  2 20:44:31 UTC 2020 - Jacob W <[email protected]>
+
+- Add lutris-0.5.4-sort_new_with_model_fix.patch adding support for renamed 
gtk attribute, fixing lutris crashing on startup. 
+
+-------------------------------------------------------------------

New:
----
  lutris-0.5.4-sort_new_with_model_fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lutris.spec ++++++
--- /var/tmp/diff_new_pack.XR643v/_old  2020-03-03 10:20:52.795226322 +0100
+++ /var/tmp/diff_new_pack.XR643v/_new  2020-03-03 10:20:52.799226330 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lutris
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 Source0:        https://lutris.net/releases/lutris_%{version}.tar.xz
 # boo#1161650: Remove xboxdrv and polkit
 Patch0:         lutris-0.5.4-boo1161650-remove-polkit.patch
+Patch1:         lutris-0.5.4-sort_new_with_model_fix.patch
 BuildRequires:  fdupes
 BuildRequires:  gobject-introspection
 BuildRequires:  hicolor-icon-theme
@@ -61,6 +62,7 @@
 %setup -q -n %{name}
 # boo#1161650
 %patch0 -p1
+%patch1 -p1
 rm -rf share/polkit-1/
 
 %build

++++++ lutris-0.5.4-sort_new_with_model_fix.patch ++++++
>From 12a458db3c590c3f1972594e091a24cb4d65b610 Mon Sep 17 00:00:00 2001
From: Mathieu Comandon <[email protected]>
Date: Wed, 1 Jan 2020 12:47:55 -0800
Subject: [PATCH] Support both sort_new_with_model and new_with_model

---
 lutris/gui/views/store.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lutris/gui/views/store.py b/lutris/gui/views/store.py
index 9e843e9e4..8fe5decf5 100644
--- a/lutris/gui/views/store.py
+++ b/lutris/gui/views/store.py
@@ -140,7 +140,11 @@ def __init__(
         self.prevent_sort_update = False  # prevent recursion with signals
         self.modelfilter = self.store.filter_new()
         self.modelfilter.set_visible_func(self.filter_view)
-        self.modelsort = 
Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
+        try:
+            self.modelsort = 
Gtk.TreeModelSort.sort_new_with_model(self.modelfilter)
+        except AttributeError:
+            # Apparently some API breaking changes on GTK minor versions.
+            self.modelsort = Gtk.TreeModelSort.new_with_model(self.modelfilter)
         self.modelsort.connect("sort-column-changed", 
self.on_sort_column_changed)
         self.modelsort.set_sort_func(sort_col, sort_func, sort_col)
         self.sort_view(sort_key, sort_ascending)

Reply via email to