File 991ed9c9592047704efa436a34b84d392c9562d4.patch of Package gnome-tetravex

From 991ed9c9592047704efa436a34b84d392c9562d4 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Wed, 17 Mar 2021 11:35:45 +0100
Subject: [PATCH] Reference of [GtkChild] fields is handled by GtkBuilder, type
 must be unowned

---
 src/score-overlay.vala | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/score-overlay.vala b/src/score-overlay.vala
index fbb55cc..9dfb5f5 100644
--- a/src/score-overlay.vala
+++ b/src/score-overlay.vala
@@ -38,10 +38,10 @@ private class ScoreOverlay : Grid
     * * updating labels
     \*/
 
-    [GtkChild] private ScoreOverlayEntry score_0;
-    [GtkChild] private ScoreOverlayEntry score_1;
-    [GtkChild] private ScoreOverlayEntry score_2;
-    [GtkChild] private ScoreOverlayEntry score_3;
+    [GtkChild] private unowned ScoreOverlayEntry score_0;
+    [GtkChild] private unowned ScoreOverlayEntry score_1;
+    [GtkChild] private unowned ScoreOverlayEntry score_2;
+    [GtkChild] private unowned ScoreOverlayEntry score_3;
 
     internal void set_score (uint8          puzzle_size,
                              uint /* [1[ */ position,
@@ -184,8 +184,8 @@ private class ScoreOverlay : Grid
 [GtkTemplate (ui = "/org/gnome/Tetravex/score-overlay-entry.ui")]
 private class ScoreOverlayEntry : Grid
 {
-    [GtkChild] private Label place_label;
-    [GtkChild] private Label value_label;
+    [GtkChild] private unowned Label place_label;
+    [GtkChild] private unowned Label value_label;
 
     internal void set_place_label (string label)
     {
-- 
GitLab

openSUSE Build Service is sponsored by